Open chigkim opened 1 year ago
You should exit your program more gracefully than simply exit() after a given time. A good habit is to stop the audio server before leaving the program.
Instead of:
time.sleep(3)
exit()
You can try something like:
time.sleep(3)
s.stop()
time.sleep(.2)
exit()
If I run the following code, I get this error after playing for a few seconds and stuttering. Portaudio error in Pa_AbortStream (pa_stop): Unanticipated host error Portaudio error in Pa_CloseStream (pa_deinit): PortAudio not initialized Portaudio error in Pa_Terminate (pa_deinit): PortAudio not initialized Pyo error: Error closing audio backend.