Thank you for your donation!


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


Add audio_output FIFO to mpd.conf
#3
Hi Tim

Thanks for your help. I have amended wrk_mpdconf() to insert the FIFO configuration text from a file as follows

PHP Code:
       ...
 
       $output .= "device \"btstream\"\n";
        $output .= "}\n";

        // mpd_oled FIFO
        $output .= file_get_contents('/usr/local/etc/mpd_oled_fifo.conf');

        $fh fopen('/etc/mpd.conf''w');
        fwrite($fh$output); 

This appears to be working fine.

I am not sure how the other functions apply. Do they need any changes if I am not providing any configuration of the FIFO in the UI?

Adrian.
Reply


Messages In This Thread
Add audio_output FIFO to mpd.conf - by adrii - 04-27-2018, 07:33 AM
RE: Add audio_output FIFO to mpd.conf - by adrii - 04-27-2018, 03:04 PM
RE: Add audio_output FIFO to mpd.conf - by adrii - 04-27-2018, 03:13 PM
RE: Add audio_output FIFO to mpd.conf - by adrii - 04-28-2018, 07:42 AM

Forum Jump: