Robotics StackExchange | Archived questions

audio_play stops after source pauses

Hey,

I am currently using audiocapture on one device to send audio and audioplay on another to play this stream. I noticed that after a while, the playback would stop and figured it might be because too many audio messages get lost and it stops the stream.

I noticed that the /audio topic still contains new data, so that is not an issue. If I restart the audio_play node it continues to play just fine.

I discovered that if you (even when on the same system) have both audioplay and audiocapture running, then kill audiocapture and restart it again, audioplay will not continue streaming. After some debugging in the code of audio_play and gstreamer, I discovered the following warning being emitted :

0:00:07.492848813 21184 0x7f5c0005ff30 WARN pulse pulsesink.c:651:gst_pulsering_stream_underflow_cb:<sink> Got underflow

This warning occurs when audio_capture stops sending data. No warnings occur when it starts to send data again, it seems to just get ignored. Any idea what to do ?

Best regards, Hans

Asked by Hansg91 on 2014-10-27 06:25:30 UTC

Comments

Answers