PulseAudio on OpenWRT with MPD and other Stuff: Difference between revisions

mNo edit summary
mNo edit summary
Line 89: Line 89:


===ALSA Related Commands===
===ALSA Related Commands===
alsactl : Good for testing basic sound device settings (Top Tip: By default, for whatever reason, the "state" (AKA stored configuration) Directory (/var/lib/alsa) does not exist, so create it.
aplay -D stereoB BeeGees.wav
aplay -D hw:0,0 -c 6 BeeGees.wav -vv : Will show information and a 'meter', along with playing the song.
speaker-test -D hw:0,0 -c 4 --chmap=FL,FR,FC,LFE -t wav : Tests the speaker output (make sure alsa-utils-tests is installed), --chmap "allows for putting things in a different order".
speaker-test -D hw:0,0 -c 8 --chmap=FL,FR,FC,LFE,SL,SR,SL,SR -t wav : For testing 7.1 surround sound, with a catch: Ain't no RL (Rear Left) or RR (Rear Right), there are two SL (Side Left(s)) and two SR (Side Right(s)).  Hey, it is what it is.  Now you know.
amixer -c 0 sset 'PCM Capture Source' 'Line' : A handy command to change the input of a USB Audio Device that support more than one input / source.  Keep in mind the two items in the quotes ( 'PCM Capture Source' and 'Line' ) are potentially unique to every USB Audio Device.  How can one get that information?  A couple commands (some noted below with details, but for now, just the commands): amixer scontrols (that's two words / commands typed together) and then: amixer -c 0 get 'PCM Capture Source' ( again, modify the item in ' ' (quotes) to the name obtained in the previous command)
alsamixer: shows a text GUI of controls
alsamixer: shows a text GUI of controls


Line 102: Line 114:


amixer scontents<span> </span>: Shows a detailed list of devices
amixer scontents<span> </span>: Shows a detailed list of devices
amixer -c 0 get 'WhatEverNameOfDevice' : 'Gets' the 'capabilities' of an 'item' / device ( WhatEverNameOfDevice can be obtained with the amixer scontents command above)


Example below;<syntaxhighlight lang="text">
Example below;<syntaxhighlight lang="text">
Line 184: Line 198:
Experiments showed that even loading module-detect after module-alsa-sink still produces an error.  So either module-detect always runs first OR module-detect doesn't check and see if an ALSA device is already loaded.
Experiments showed that even loading module-detect after module-alsa-sink still produces an error.  So either module-detect always runs first OR module-detect doesn't check and see if an ALSA device is already loaded.


==== module-native-protocol-unix ====
====module-native-protocol-unix====
If the module-native-protocol-unix isn't loaded ( load-module module-native-protocol-unix ) then the PACTL Command won't work.
If the module-native-protocol-unix isn't loaded ( load-module module-native-protocol-unix ) then the PACTL Command won't work.