Added missing reference to completed_callback_event

This commit is contained in:
Fabio Manganiello 2018-12-23 23:43:12 +01:00
parent c2cf0b5f74
commit 755df6284a

View file

@ -414,6 +414,7 @@ class SoundPlugin(Plugin):
q.put_nowait(data) # Pre-fill the audio queue
streamtype = sd.RawOutputStream if file else sd.OutputStream
completed_callback_event = Event()
stream = streamtype(samplerate=samplerate, blocksize=blocksize,
device=device, channels=channels,
dtype='float32',