[ltp] sound card mixing

flokno linux-thinkpad@linux-thinkpad.org
Tue, 23 Dec 2003 19:56:27 +0100


i have it working with kernel 2.6.0 on my r40 - i810 with

flokno@lap flokno $ cat /etc/asound.conf
pcm.!default {
    type plug
    slave.pcm "dmixer"
}

pcm.dsp0 {
    type plug
    slave.pcm "dmixer"
}

pcm.dmixer  {
    type dmix
    ipc_key 1024
    slave {
        pcm "hw:0,0"
        period_time 0
        period_size 1024
        buffer_size 8192
        #periods 128
        rate 44100
    }
    bindings {
        0 0
        1 1
    }
}

ctl.mixer0 {
    type hw
    card 0
}

mixes fine with kde and xmms or centericq and mplayer and stuff.
don't ask my where i got the above snippet.

On Tue, 2003-12-23 at 18:25, Steve Krulewitz wrote:
> Another option is to use alsa's dmix plugin:
> 
> http://www.alsa-project.org/alsa-doc/doc-php/asoundrc.php3#softmix
> 
> but I could never get this to work ;)
> 
> cheers,
> -steve