>Just wondered how I can apply the cool feature - dmix
>- to my own program to mix sounds? for example, after
>I compile my small c++ program, I can run it one at a
>time:
>
>./a.out TestMusic.wav
>
>The thing's that how I can mix sounds when I run:
>
>./a.out TestMusic01.wav &
>./a.out TestMusic02.wav &
>./a.out TestMusic03.wav &

make your program accept an argument naming the PCM device to
open. define the device (if necessary) in ~/.asoundrc. run the program
with the appropriate argument. i believe that there is documentation
on the website about using dmix, but it'll be up to someone else to
point you at it if you can't find it.

different kinds ALSA PCM devices do not require different source
code. writing to the dmix plugin is no different than writing to
hardware or other plugins.

--p


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to