Hello all,
I am trying to play two audio streams using alsa libraries at the same time, but I am not able to do so. I could play a single audio stream though. I get bi-directional G711 MU Law RTP streams and I am using the sample playback capture code from the tutorial section for playing it. I am using the Non blocking and interleaved mode for playing the streams.
The alsa library plays both the audio streams for a few seconds but it is incomprehensible and after few seconds I get the error "write to audio interface failed (broken pipe)".
I also tried opening two pcm handles for each stream to the same device ("default"), but the second handle is unusable gives the same error "write to audio interface failed (broken pipe)".
I have the same problem playing two audio streams to the /dev/dsp device.
I am pretty sure I am not doing it the right way. Any help is highly appreciated or pointer to links that explains how to play multiple streams using alsa.
Thanks Arjunen