Skip to content

Instantly share code, notes, and snippets.

@cbarraco
Created May 15, 2015 15:46
Show Gist options
  • Save cbarraco/807c760ed7edaa0b5394 to your computer and use it in GitHub Desktop.
Save cbarraco/807c760ed7edaa0b5394 to your computer and use it in GitHub Desktop.
pcm.!default {
type hw
card 0
}
ctl.!default {
type hw
card 0
}
pcm.!default {
type plug
slave.pcm {
type multi
slaves {
a { channels 2 pcm "hw:0,0" } # the real device
b { channels 2 pcm "hw:1,0" } # the loopback driver
}
bindings {
0 { slave a channel 0 }
1 { slave a channel 1 }
2 { slave b channel 0 }
3 { slave b channel 1 }
}
}
ttable [
[ 1 0 1 0 ] # left -> a.left, b.left
[ 0 1 0 1 ] # right -> a.right, b.right
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment