Closed mahaju closed 2 years ago
There could be a memory leak. Are you able to tell somehow? (E.g. monitor the process' memory consumption over time, or run valgrind, maybe it can detect something.) Also, try comparing the pulse and ALSA backends if you can.
This seems stale ... I'm closing it.
I am using RtAudio Version 5.1.0 downloaded from http://www.music.mcgill.ca/~gary/rtaudio/release/rtaudio-5.1.0.tar.gz I built it using the configure configure options:
./configure --with-alsa --with-pulse --enable-debug
I have connected USB sound card to a hub, connected to the raspberry pi zero W. Besides this sound card this hub has a keyboard and iptime wifi antenna attached. I am using a modified version of the Duplex sample program to send 1 channel mic data form the soundcard to 2 channel headphones. After running this program continuously for almost 4 hours, the audio suddenly stopped and I started getting
RtApiPulse::callbackEvent: audio read error, Entity killed.
continuously.I have also noticed that the audio latency, that is, the duration between sound going into the mic and coming out the receiver, was very short in the beginning (less than half a second), which slowly increased as time went on. After around 3 and a half hours this latency was several seconds before the finally stopped, and I started getting the error message above.
What is the cause for this? Is this a bug in the library or am I using it wrong?
Here are all the details:
result of audioprobe:
Duplex sample program output (before error)
CMakeLists.txt :
Duplex.cpp
I feel this is related to a previous issue I have raised here: https://github.com/thestk/rtaudio/issues/330