# Set default sound card # Useful so that all settings can be changed to a different card here. pcm.snd_card { type hw card 0 device 0 } # Allow mixing of multiple output streams to this device pcm.output { type dmix ipc_key 1337 ipc_perm 0666 # Sound for everybody in your group! slave.pcm "snd_card" slave { # This stuff provides some fixes for latency issues. # buffer_size should be set for your audio chipset. period_time 0 period_size 1024 buffer_size 8192 channels 6 } bindings { 0 0 1 1 2 2 3 3 4 4 5 5 } } pcm.raw51 { type plug slave.pcm { type route slave.pcm "output" slave.channels 6 ttable.0.0 1.0 ttable.1.1 1.0 ttable.2.2 1.0 ttable.3.3 1.0 ttable.4.4 1.0 ttable.5.5 1.0 } slave.channels 6 } pcm.!surround51 { type plug slave.pcm { type route slave.pcm "output" slave.channels 6 ttable.0.0 1.0 ttable.1.1 1.0 ttable.2.2 1.0 ttable.3.3 1.0 ttable.4.4 1.0 ttable.0.5 0.6 ttable.1.5 0.6 ttable.4.5 0.6 ttable.5.5 0.8 } slave.channels 6 } pcm.!surround50 { type plug slave.pcm { type route slave.pcm "output" slave.channels 6 ttable.0.0 1.0 ttable.1.1 1.0 ttable.2.2 1.0 ttable.3.3 1.0 ttable.0.5 0.6 ttable.1.5 0.6 ttable.4.5 0.6 } slave.channels 5 } pcm.!surround41 { type plug slave.pcm { type route slave.pcm "output" slave.channels 6 ttable.0.0 1.0 ttable.1.1 1.0 ttable.2.2 1.0 ttable.3.3 1.0 ttable.4.4 1.0 ttable.0.5 0.6 ttable.1.5 0.6 ttable.4.5 0.8 } slave.channels 5 } pcm.!surround40 { type plug slave.pcm { type route slave.pcm "output" slave.channels 6 ttable.0.0 1.0 ttable.1.1 1.0 ttable.2.2 1.0 ttable.3.3 1.0 ttable.0.5 0.6 ttable.1.5 0.6 } slave.channels 4 } pcm.simplestereo { type plug slave.pcm { type route slave.pcm "output" slave.channels 6 ttable.0.0 1.0 ttable.1.1 1.0 ttable.0.2 1.0 ttable.1.3 1.0 ttable.0.4 0.2 ttable.1.4 0.2 } slave.channels 5 } pcm.frontmap { type route slave.pcm "output" slave.channels 6 ttable.0.0 1.0 ttable.1.1 1.0 ttable.0.2 1.0 ttable.1.3 1.0 ttable.0.4 0.2 ttable.1.4 0.2 ttable.0.5 0.6 ttable.1.5 0.6 } # Allow reading from the default device. # Also known as record or capture. pcm.input { type dsnoop ipc_key 2048 slave.pcm "snd_card" ## Possible artsd full duplex fix: slave { period_time 0 period_size 1024 buffer_size 8192 } bindings { 0 0 1 1 } } pcm.duplex { type asym playback.pcm "frontmap" capture.pcm "input" } pcm.!default { type plug slave.pcm "duplex" slave.channels 2 } pcm.!front { type plug slave.pcm "duplex" slave.channels 2 } # OSS dsp0 device (OSS needs only output support, duplex will break some stuff) pcm.dsp0 { type plug slave.pcm "frontmap" slave.channels 2 } # OSS control for dsp0 (needed?...this might not be useful) ctl.dsp0 { type plug slave.pcm "snd_card" } # OSS control for dsp0 (default old OSS is mixer0) ctl.mixer0 { type plug slave.pcm "snd_card" }