Last active
July 17, 2022 18:13
-
-
Save ubergarm/975726e37ab4bef2b431c5824f7462db to your computer and use it in GitHub Desktop.
Arch Linux .asoundrc file for firefox audio without pulseaudio
This file contains 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
## TESTING | |
# $ aplay -l # show device details | |
# $ aplay -lL # more deets | |
# $ cat /proc/asound/card*/id # to get human readable card names e.g. | |
# CODEC -> usb mixer | |
# NVidia -> displayport/hdmi monitor | |
# Generic -> motherboard headphones / mic / line out | |
# C930e -> usb web camera | |
# $ aplay /usr/share/sounds/alsa/Front_Center.wav # to test playback from default output device | |
# arecord --duration=3 --format=dat mic-check.wav # to test recording from default capture device | |
# aplay mic-check.wav | |
## CONFIG | |
pcm.!default | |
{ | |
type asym | |
playback.pcm { | |
type plug | |
slave.pcm "dmix:NVidia,7" | |
} | |
capture.pcm "hw:CODEC,0" | |
} | |
## To make `alsamixer` default to whatever device you want | |
ctl.!default { | |
type hw | |
card NVidia | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment