On Thu, 19 Jun 2003, Alex Kuang wrote:

> Hi there,
> 
> 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 &
> 
> Thank you very much,

Simply use different pcm name as argument to snd_pcm_open().
Replace 'default' with 'plug:dmix'.

                                                Jaroslav

-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs



-------------------------------------------------------
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