Last active
June 21, 2020 05:13
-
-
Save Alexander--/fd34ee9b61b5756d8852cff3bb96f18c to your computer and use it in GitHub Desktop.
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
| # actual hardware device descriptions | |
| pcm.rawcard { | |
| type hw | |
| card 0 | |
| device 0 | |
| hint { | |
| show on | |
| description "Direct Intel audio driver access" | |
| } | |
| } | |
| # a quick hack to disable sound in some kinds of apps | |
| pcm.discard { | |
| type null | |
| hint { | |
| show on | |
| description "Disable sound (use /dev/null)" | |
| } | |
| } | |
| pcm.mixin { | |
| type dsnoop | |
| ipc_key 2048 | |
| ipc_key_add_uid false | |
| slave.pcm "rawcard" | |
| #bindings { | |
| # 0 0 | |
| # 0 1 | |
| #} | |
| } | |
| # configure the software mixer for output | |
| pcm.mixout { | |
| type dmix | |
| ipc_key 1024 | |
| ipc_key_add_uid false | |
| # Allow other users in my group to access that area so they can | |
| # also open this device. This is especially important if you want | |
| # to put this device into a global configuration file. | |
| ipc_perm 0660 | |
| slave.pcm "rawcard" | |
| # bindings are cool. This says, that only the first | |
| # two channels are to be used by dmix, which is | |
| # enough for (most) oss apps and also lets | |
| # multichannel chios work much faster: | |
| #bindings { | |
| # 0 0 # from 0 => to 0 | |
| # 1 1 # from 1 => to 1 | |
| #} | |
| } | |
| ctl.mixout { | |
| type hw | |
| card 0 | |
| } | |
| ctl.!default { | |
| type hw | |
| card 0 | |
| } | |
| # a software-mixed device as default | |
| pcm.!default { | |
| # The "plug" plugin is misleadingly named; it has nothing to do with being | |
| # a plugin. What it should really be named is the "auto-re-sample" plugin. | |
| # It allows this device to be used at any sample rate. | |
| type plug | |
| slave.pcm { | |
| # The "asym" plugin is a virtual "asymmetric" device; where capture and | |
| # playback on the same virtual device may be going to two different | |
| # underlying devices. In fact, we are sending both playback and | |
| # capture to the same device in this case, but we need to use two | |
| # different plugins ("dmix" and "dsnoop") to do it. It requires a | |
| # "playback.pcm" and "capture.pcm" argument to describe the two halves | |
| type asym | |
| playback.pcm "mixout" | |
| capture.pcm "mixin" | |
| } | |
| hint { | |
| show on | |
| description "Software-mixed input/output" | |
| } | |
| } | |
| defaults.pcm.rate_converter "speexrate_medium" | |
| #defaults.ctl.!card "PCH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment