Moode Forum
MPD config - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: MPD config (/showthread.php?tid=1220)



MPD config - jgee@vsgpartners.com - 03-27-2019

I recently resolved being able to play m4a tracks by placing format "44100:16:2" in the MPD config file. 

However, I switch between local and bluetooth (I have a justboom DAC hat attached and use headphones that are wired and bluetooth).

When I switch back to bluetooth, then my MPD settings for bluetooth are overwritten and so I have to manually put back format "44100:16:2"  each time.

Is there a way to maintain my settings?

By the way, the MoOde audio player is fantastic.


RE: MPD config - Tim Curtis - 03-27-2019

Edit the function updMpdConf() in file /var/www/inc/playerlib.php and add the format line in the // bluetooth code block.


RE: MPD config - jgee@vsgpartners.com - 03-28-2019

(03-27-2019, 09:00 PM)Tim Curtis Wrote: Edit the function updMpdConf() in file /var/www/inc/playerlib.php and add the format line in the // bluetooth code block.

I edited playerlib as follows:

$output .= "audio_output {\n";
$output .= "type \"alsa\"\n";
$output .= "name \"ALSA bluetooth\"\n";
$output .= "device \"btstream\"\n";
$output .= "mixer_type \"software\"\n";
$output .= "format \"44100:16:2\"\n";
$output .= "}\n";

However, it still is not writing in the format when I change to bluetooth. What have I done wrong?


RE: MPD config - Tim Curtis - 03-28-2019

After rebooting, a new mpd.conf file should be written.