mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
wait until output buffer empties before finishing
This commit is contained in:
parent
8c9f1c5761
commit
b619b341d1
1 changed files with 4 additions and 2 deletions
|
@ -155,7 +155,9 @@ for i in range(1,N_BURSTS+1):
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
|
|
||||||
# and at last check if we had an openend pyaudio instance and close it
|
# and at last check if we had an opened pyaudio instance and close it
|
||||||
if AUDIO_OUTPUT_DEVICE != -1:
|
if AUDIO_OUTPUT_DEVICE != -1:
|
||||||
|
time.sleep(stream_tx.get_output_latency())
|
||||||
|
stream_tx.stop_stream()
|
||||||
stream_tx.close()
|
stream_tx.close()
|
||||||
p.terminate()
|
p.terminate()
|
||||||
|
|
Loading…
Reference in a new issue