Last active
January 9, 2019 09:56
-
-
Save ophilips/ccd6962c8a46890a7397a4ad9fb20b22 to your computer and use it in GitHub Desktop.
Convert Stereo to balanced Mono
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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