mirror of
https://github.com/chidiwilliams/buzz.git
synced 2026-03-16 15:45:49 +01:00
Fix for a test
This commit is contained in:
parent
dbaee1f30a
commit
1fb0bb0ead
1 changed files with 6 additions and 1 deletions
|
|
@ -135,7 +135,12 @@ class MockInputStream:
|
|||
if self._stop_event.is_set():
|
||||
break
|
||||
chunk = audio[seek : seek + num_samples_in_chunk]
|
||||
self.callback(chunk, 0, None, None)
|
||||
try:
|
||||
self.callback(chunk, 0, None, None)
|
||||
except RuntimeError:
|
||||
# Qt object was deleted between the stop-event check and
|
||||
# the callback invocation; treat it as a stop signal.
|
||||
break
|
||||
seek += num_samples_in_chunk
|
||||
|
||||
# loop back around
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue