All pastes #605164 Raw Edit

dmix

public text v1 · immutable
·published 2007-07-06 00:08 UTC
rendered paste body
#soFtware mixing across all apps.

#

# http://alsa.opensrc.org/index.php?page=AlsaSharing

# http://alsa.opensrc.org/index.php?page=DmixPlugin

pcm.dmix0 {

type dmix

ipc_key 219345 # any unique number here

slave {

pcm "hw:0,0"

period_time 0

buffer_time 0

period_size 2048 # jm: much smoother than 1024/8192!

buffer_size 32768

rate 48000

}

bindings {

0 0 # from 0 => to 0

1 1 # from 1 => to 1

}

}

pcm.dsp0 {

type plug

slave.pcm "dmix0"

}

# this makes native ALSA apps default to using dmix

pcm.!default {

type plug

slave.pcm "dmix0"

}

ctl.dsp0 {

type hw

card 0

}

ctl.!default {

type hw

card 0

}