[alsa-devel] Help! Playing multiple audio stream using alsa libraries

Arjun Sambamoorthy arjunsam at gmail.com
Fri Oct 2 01:00:23 CEST 2009

Hello guys,

I had to mix the two streams before playing it. Thanks anyways.


On Thu, Oct 1, 2009 at 1:22 PM, Arjun Sambamoorthy <arjunsam at gmail.com> wrote:
> 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

More information about the Alsa-devel mailing list