Skip to content

Instantly share code, notes, and snippets.

@ophilips
Last active January 9, 2019 09:56
Show Gist options
  • Save ophilips/ccd6962c8a46890a7397a4ad9fb20b22 to your computer and use it in GitHub Desktop.
Save ophilips/ccd6962c8a46890a7397a4ad9fb20b22 to your computer and use it in GitHub Desktop.
Convert Stereo to balanced Mono
pcm.card0 {
type hw
card 0
}
ctl.card0 {
type hw
card 0
}
pcm.monocard {
slave.pcm card0
slave.channels 2
type route
ttable {
# Copy both input channels to output channel 0
0.0 0.5
1.0 0.5
# Copy and invert both input channels to output channel 1
0.1 -0.5
1.1 -0.5
}
}
ctl.monocard {
type hw
card 0
}
pcm.!default monocard
ctl.!default monocard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment