mpd.conf (1341B)
1 # Recommended location for database 2 db_file "~/.local/share/mpd/database" 3 4 # If running mpd using systemd, delete this line to log directly to systemd. 5 log_file "~/.cache/mpd/log" 6 7 # The music directory is by default the XDG directory, uncomment to amend and choose a different directory 8 music_directory "~/music" 9 10 # Uncomment to refresh the database whenever files in the music_directory are changed 11 auto_update "yes" 12 13 # Uncomment to enable the functionalities 14 playlist_directory "~/.local/share/mpd/playlists" 15 pid_file "~/.local/share/mpd/pid" 16 state_file "~/.local/share/mpd/state" 17 sticker_file "~/.local/share/mpd/sticker.sql" 18 19 restore_paused "yes" 20 21 audio_output { 22 type "pulse" 23 name "pulse audio" 24 } 25 26 audio_output { 27 type "fifo" 28 name "my_fifo" 29 path "/tmp/mpd.fifo" 30 format "44100:16:2" 31 } 32 33 audio_output { 34 type "httpd" 35 name "Webstream" 36 encoder "opus" # Use the appropriate encoder for your stream 37 port "8000" # Choose a port not already in use 38 bind_to_address "0.0.0.0" # Allows connections from any address 39 format "44100:16:2" # Sample rate, bit depth, and channels 40 max_clients "0" # Maximum number of clients (0 means unlimited) 41 }