OK. I have a solution and a working asound.conf file. The setup below allows me to use two seperate stereo channels to output MPD streams. This is working well now.

My only remaining problem is how to use XMMS with this config file. Everytime I try it it is blocked. Any suggestions?

pcm.!default {
       type plug
       slave.pcm "dmixer"
}

pcm.dmixer  {
       type dmix
       ipc_key 1024
       ipc_gid 1024
       slave {
               pcm "hw:0,0"
               format S32_LE
               period_time 0
               period_size 1024
               buffer_size 4096
               rate 44100
       }
       bindings {
               0 0
               1 1
       }
}

ctl.dmixer {
       type hw
       card 0
       device 0
}

pcm.channel12 {
    type dmix
    ipc_key 1024
    ipc_gid 1024
    slave {
    pcm "hw:0,0"
        period_time 0
        period_size 1024
        period_time 0
        period_size 1024
        buffer_size 4096 # buffer size < 6653, but pow(x, 2)
        format "S32_LE"
        rate 44100 # we want to play CDs only
    }
    bindings {
        0 2
        1 3
    }

}

pcm.channel34 {
    type dmix
    ipc_key 1024
    ipc_gid 1024
    slave {
    pcm "hw:0,0"
        period_time 0
        period_size 1024
        buffer_size 4096 # buffer size < 6653, but pow(x, 2)
        format "S32_LE"
        rate 44100 # we want to play CDs only
    }
    bindings {
        0 4
        1 5
    }

}




On 1/17/06, Rich Rosa <[EMAIL PROTECTED]> wrote:
two stereo pairs. By way of testing I set up an ALSA process and a MPD process. They cannot play concurrently.

On 1/17/06, Lee Revell < [EMAIL PROTECTED]> wrote:
On Tue, 2006-01-17 at 21:06 -0500, Rich Rosa wrote:
> I tried without the asound.conf file. I can send audio to any of the
> pre-defined channels, but not two at the same time. I feel we're
> getting closer here though.

By "at the same time" do you mean two alsaplayer processes, or two
stereo pairs?

Lee



Reply via email to