Moode Forum

Full Version: MPD config
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
Edit the function updMpdConf() in file /var/www/inc/playerlib.php and add the format line in the // bluetooth code block.
(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?
After rebooting, a new mpd.conf file should be written.