Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


MPD config
#1
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.
Reply
#2
Edit the function updMpdConf() in file /var/www/inc/playerlib.php and add the format line in the // bluetooth code block.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
(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?
Reply
#4
After rebooting, a new mpd.conf file should be written.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: