Hallo,
Bob Rossi hat gesagt: // Bob Rossi wrote:

> I am trying to get dmix to work for me. My understanding is that dmix is
> the solution  for user space daemons. If I use dmix, I don't have to use
> those daemons (esd). Also, as many applications that I want can open
> /dev/dsp without blocking. Is all of this true?
> 
> So far, my .asoundrc looks like
> 
> pcm.cmipci {
>    type hw     # Kernel PCM
>    card 0      # Card Number
>    device 0    # Device Number
> }
> 
> pcm.cmipci {

I don't think you can use the same pcm name twice in asoundrc.
Redefine this to pcm.cmidmix or such.

>    type dmix               # Direct mix
>    ipc_key 777             # unique IPC key
>    slave cmipci
> }
> ctl.cmipci {
>    type hw
>    card 0
> }

You don't need to set anything in the asoundrc to use dmix. Just call: 
"aplay -D plug:dmix yourfile.wav". 

> I can run this command 'aplay -D hw:0,0 test.wav' on multiple terminals
> and I do hear both.

You're lucky. It shouldn't work with hw:0, unless you card supports
hardware mixing. But if it does, you don't need dmix. I'm puzzled.

> My question is, how does all of this relate to non alsa applications? I
> want to be able to use xmms, mozilla, and teamspeak all at once. It
> still seems that, even with my current setup, only 1 instance of
> /dev/dsp can be opened. Is there configuration problem?

Normally (without hardware mixing) you cannot use /dev/dsp multiple
times directly. Only ALSA's plug:dmix device supports stream mixing
outside of sound servers. It should be possible to run OSS
applications with the aoss wrapper on dmix, but somehow I couldn't get
this to work yet. 

ciao
-- 
 Frank Barknecht                               _ ______footils.org__


-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to