Re: Playing multiple sounds at the same time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04.05.2010 at 10:34 Raymond Yau wrote:

>2010/4/30 Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
>
>> On Fri, Apr 30, 2010 at 12:38:49PM +0200, Andreas Falkenhahn wrote:
>>
>> > Now I want to play sounds 1 to 3 at the same time. My question is now:
>> Can
>> > ALSA do automatic mixing for me here or do I have to do the mixing on
>my
>> > own? In other words, can I simply feed all these three sound streams to
>> > ALSA or do I have to mix them into a fourth audio stream first and
>> feeding
>> > this new fourth stream to ALSA then?
>>
>> The easiest thing for your application is to just open and play multiple
>> audio streams and allow a system mixing daemon such as PulseAudio to
>> take care of the mixing.
>>
>>
>Are you sure that your program can connect to PA server multilple times ?

Yes, it's working fine. I can call snd_pcm_open() as many times as I want
and it is playing multiple streams in different sample formats at the same
time just fine.

Greets,

Andreas
--
"Remember: It's nice to be important but it's more important to be nice!"


_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux