spatialaudio / python-sounddevice

:sound: Play and Record Sound with Python :snake:
https://python-sounddevice.readthedocs.io/
MIT License
980 stars 145 forks source link

2 error messages after playback #419

Open interlocuteur opened 2 years ago

interlocuteur commented 2 years ago

Context: Linux 5.15.23, python 3.8.12, sounddevice 0.4.3 I'm using sounddevice + SoundFile for playback of short WAV files. I need no-blocking operation so I use callback in RawOutputStream. Playback works fine but I get 2 error messages after playback: Expression 'pthread_join( self->thread, &pret )' failed in 'src/os/unix/pa_unix_util.c', line: 441 Expression 'PaUnixThread_Terminate( &stream->thread, !abort, &threadRes )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3102 Seem to come from a threading library. Can somebody help?

mgeier commented 1 year ago

If everything works, you might as well ignore the message.

But if you want to look into it, you should try to find out which PortAudio library you are using. Did you install it with the package manager?

You can try to compile PortAudio from source, maybe this makes the message go away?