commit 57169daddad66bf65028d200088bee2c8791eb1a
parent 9d614621286338122127b5d07e1ce95ca163322e
Author: mayfrost <mayfrost@cock.li>
Date: Tue, 29 May 2018 03:10:24 +0000
Update AUDIO.md
Diffstat:
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/AUDIO.md b/AUDIO.md
@@ -4,18 +4,20 @@
Here is how to get sound on a minimal install without the insanity of pulseaudio:
-1. Erase .asoundrc in your home directory and asound.conf in /etc.
+1. Erase __.asoundrc__ in your home directory and __asound.conf__ in __/etc__.
2. Purge pulseaudio. And when I mean purge, I mean it.
-3. Identify your available devices in /proc/asound/modules, do:
+3. Identify your available devices in __/proc/asound/modules__, do:
`$ cat /proc/asound/modules`
-Here is an exampl of /proc/asound/modules:
+Here is an example of what you will see in __/proc/asound/modules__:
`0 snd_usb_audio`
`1 snd_hda_intel`
-4. Select from the above and put them in the order you want in the file /etc/modprobe.d/alsa-base.conf, by assigning an index from -2 to 2, making the preferred output the lowest number. As I know I have two devices I want the one that says usb because that is my headphone, so in /etc/modprobe.d/alsa-base.conf I put:
+4. Select from the above and put them in the order you want in the file __/etc/modprobe.d/alsa-base.conf__, by assigning an index from -2 to 2, making the preferred output the lowest number.
+
+As an example if you have two devices and want the one that says usb because that is your headphone, on __/etc/modprobe.d/alsa-base.conf__ you will put:
`options snd_usb_audio enable=1 index=0`
`options snd_hda_intel index=1`
@@ -23,11 +25,13 @@ Notice the index.
5. Restart the computer.
-6. To run Firefox without pulseaudio install apulse.
+### Run Firefox without pulseaudio
+
+1. Install __[apulse](https://github.com/i-rinat/apulse)__.
-7. Go to about:config and enter "__/dev/snd/__" under __security.sandbox.content.read_path_whitelist__ and __security.sandbox.content.write_path_whitelist;/dev/snd/__.
+2. On Firefo open __about:config__ and enter "__/dev/snd/__" under __security.sandbox.content.read_path_whitelist__ and __security.sandbox.content.write_path_whitelist;/dev/snd/__.
-8. Every time you want to use firefox with this setting issue the command:
+3. Every time you want to use firefox with this setting issue the command:
`$ apulse firefox`
-8. Save it in a script or .desktop file to automate this.
+4. Alternatively save the above in a script or in a .desktop file for automation.