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

mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 26: Line 26:
Dependencies include some basic ALSA (Advanced Linux Sound Architecture) stuff, but a couple of more items are nice to have for several reason, including testing, so;
Dependencies include some basic ALSA (Advanced Linux Sound Architecture) stuff, but a couple of more items are nice to have for several reason, including testing, so;


opkg install alsa-utils alsa-ucm-conf mpd-full mpd-avahi-service mpc lib<ins>mpd</ins>client
opkg install ffmpeg-full ffprobe alsa-utils alsa-ucm-conf mpd-full mpd-avahi-service mpc lib<ins>mpd</ins>client


...and maybe opkg install madplay mpg123 (they don't install any services, so they're just there if you need them)
...and maybe opkg install madplay mpg123 (they don't install any services, so they're just there if you need them)
Line 35: Line 35:


...but first: opkg install python3 (don't worry that the OpenWRT version of Python 3 is lower than the required version of PulseMixer, as it seems to work fine)
...but first: opkg install python3 (don't worry that the OpenWRT version of Python 3 is lower than the required version of PulseMixer, as it seems to work fine)
==== MPD Notes ====
* Make sure to install ffmpeg-full, using opkg install ffmpeg-full EXPLICITLY, otherwise ffmpeg-mini will be installed (which miraculously does NOT include support for the simplest format there is, .WAV Files)
* ffprobe is a useful tool to install
* Modify the /etc/init.d/mpd File to run as root:root (just do it, saves a lot of trouble later)


====The Errors====
====The Errors====
Line 42: Line 48:
chmod: /dev/mixer: No such file or directory
chmod: /dev/mixer: No such file or directory
chmod: /dev/dsp: No such file or directory
chmod: /dev/dsp: No such file or directory
</syntaxhighlight>Will this fix it (spoiler alert, NO, so like Frankie said "don't do it")?: opkg install gst1-mod-dv<ins>dsp</ins>u gst1-mod-audiomixer (a bunch of dependencies would be installed too).  We'll get to the fix later, let's focus on the "Show Stopper"
</syntaxhighlight>Will this fix it (spoiler alert, NO, so like Frankie said "don't do it")?: opkg install gst1-mod-dv<ins>dsp</ins>u gst1-mod-audiomixer (a bunch of dependencies would be installed too).  We'll get to the fix later, let's focus on the "Show Stopper".  Just kidding, fix is below;
 
*...just make sure the Audio Device is plugged in.


=====The "Show Stopper" for PulseAudio=====
=====The "Show Stopper" for PulseAudio=====
Line 85: Line 93:


====FIRST! (or rather the next thing to do)====
====FIRST! (or rather the next thing to do)====
Because OpenWRT doesn't include of the Bluez Tools (nope, not Blues Clues), make sure PulseAudio has the Bluetooth Modules loaded up and ready to go!
REMEMBER: PulseAudio has to be properly configured and running for Bluetooth (bluetoothctl) to work!  and because OpenWRT doesn't include of the Bluez Tools (nope, not Blues Clues), make sure PulseAudio has the Bluetooth Modules loaded up and ready to go (IE, the AVAHI version of PulseAudio)!
 
See: [[PulseAudio on OpenWRT with MPD and other Stuff#Installation of Software]]


<br />
AND make sure the /etc/pulse/system.pa loads the Bluetooth Module


====Crap that Does NOT work====
====Crap that Does NOT work====