From 513434de7f0dd52ed49b6991b3d2e3d0aa9f6aeb Mon Sep 17 00:00:00 2001 From: Breizh Date: Fri, 19 Feb 2021 03:32:50 +0100 Subject: [PATCH] =?UTF-8?q?M=C3=A0j=20conf=20MPD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/mpd/mpd.conf | 84 ++++++++++++++++++++++++++++---------------- 1 file changed, 54 insertions(+), 30 deletions(-) diff --git a/.config/mpd/mpd.conf b/.config/mpd/mpd.conf index 63ba2e3..412af11 100644 --- a/.config/mpd/mpd.conf +++ b/.config/mpd/mpd.conf @@ -5,7 +5,7 @@ # Files and directories ####################################################### # # This setting controls the top directory which MPD will search to discover the -# available audio files and add them to the daemon's online database. This +# available audio files and add them to the daemon's online database. This # setting defaults to the XDG directory, otherwise the music directory will be # be disabled and audio files will only be accepted over ipc socket (using # file:// protocol) or streaming files over an accepted protocol. @@ -13,20 +13,20 @@ music_directory "~/Musique" # # This setting sets the MPD internal playlist directory. The purpose of this -# directory is storage for playlists created by MPD. The server will use +# directory is storage for playlists created by MPD. The server will use # playlist files not created by the server but only if they are in the MPD # format. This setting defaults to playlist saving being disabled. # playlist_directory "~/.mpd/playlists" # # This setting sets the location of the MPD database. This file is used to -# load the database at server start up and store the database while the +# load the database at server start up and store the database while the # server is not up. This setting defaults to disabled which will allow # MPD to accept files over ipc socket (using file:// protocol) or streaming # files over an accepted protocol. # -db_file "~/.mpd/database" -# +#db_file "~/.mpd/database" +# # These settings are the locations for the daemon log files for the daemon. # These logs are great for troubleshooting, depending on your log_level # settings. @@ -44,7 +44,7 @@ pid_file "~/.mpd/pid" # # This setting sets the location of the file which contains information about # most variables to get MPD back into the same general shape it was in before -# it was brought down. This setting is disabled by default and the server +# it was brought down. This setting is disabled by default and the server # state will be reset on server start up. # state_file "~/.mpd/state" @@ -74,7 +74,7 @@ sticker_file "~/.mpd/sticker.sql" #group "nogroup" # # This setting sets the address for the daemon to listen on. Careful attention -# should be paid if this is assigned to anything other then the default, any. +# should be paid if this is assigned to anything other than the default, any. # This setting can deny access to control of the daemon. Not effective if # systemd socket activiation is in use. # @@ -89,12 +89,11 @@ bind_to_address "~/.mpd/socket" # #port "6600" # -# This setting controls the type of information which is logged. Available -# setting arguments are "default", "secure" or "verbose". The "verbose" setting -# argument is recommended for troubleshooting, though can quickly stretch -# available resources on limited hardware storage. +# Suppress all messages below the given threshold. Use "verbose" for +# troubleshooting. Available setting arguments are "notice", "info", "verbose", +# "warning" and "error". # -#log_level "default" +#log_level "notice" # # Setting "restore_paused" to "yes" puts MPD into pause mode instead # of starting playback after startup. @@ -115,7 +114,7 @@ metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,dis # the other supported tags: #metadata_to_use "+comment" # -# This setting enables automatic update of MPD's database when files in +# This setting enables automatic update of MPD's database when files in # music_directory are changed. # auto_update "yes" @@ -130,7 +129,7 @@ auto_update "yes" # Symbolic link behavior ###################################################### # -# If this setting is set to "yes", MPD will discover audio files by following +# If this setting is set to "yes", MPD will discover audio files by following # symbolic links outside of the configured music_directory. # #follow_outside_symlinks "yes" @@ -165,7 +164,7 @@ auto_update "yes" # #password "password@read,add,control,admin" # -# This setting specifies the permissions a user has who has not yet logged in. +# This setting specifies the permissions a user has who has not yet logged in. # #default_permissions "read,add,control,admin" # @@ -174,7 +173,18 @@ auto_update "yes" # Database ####################################################################### # - +# An example of a database section instead of the old 'db_file' setting. +# It enables mounting other storages into the music directory. +# +database { + plugin "simple" + path "~/.mpd/db" + cache_directory "~/.mpd/cache" +} +# +# An example of database config for a sattelite setup +# +#music_directory "nfs://fileserver.local/srv/mp3" #database { # plugin "proxy" # host "other.mpd.host" @@ -183,7 +193,6 @@ auto_update "yes" # Input ####################################################################### # - input { plugin "curl" # proxy "proxy.isp.com:8080" @@ -196,8 +205,8 @@ input { # Audio Output ################################################################ # -# MPD supports various audio output types, as well as playing through multiple -# audio outputs at the same time, through multiple audio_output settings +# MPD supports various audio output types, as well as playing through multiple +# audio outputs at the same time, through multiple audio_output settings # blocks. Setting this block is optional, though the server will only attempt # autodetection for one sound card. # @@ -274,14 +283,15 @@ input { #} # # An example of a pulseaudio output (streaming to a remote pulseaudio server) - +# audio_output { type "pulse" - name "PulseAudio" + name "PipeWire Pulse" # server "remote_server" # optional # sink "remote_server_sink" # optional +# media_role "media_role" #optional } - +# # An example of a winmm output (Windows multimedia API). # #audio_output { @@ -293,6 +303,20 @@ audio_output { ## mixer_type "hardware" # optional #} # +# An example of a wasapi output (Windows multimedia API). +# +#audio_output { +# type "wasapi" +# name "My WASAPI output" +## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional +# or +## device "0" # optional +## Exclusive mode blocks all other audio source, and get best audio quality without resampling. +## exclusive "no" # optional +## Enumerate all devices in log. +## enumerate "no" # optional +#} +# # An example of an openal output. # #audio_output { @@ -348,11 +372,12 @@ audio_output { # the argument "off", "album", "track" or "auto". "auto" is a special mode that # chooses between "track" and "album" depending on the current state of # random playback. If random playback is enabled then "track" mode is used. -# See for more details about ReplayGain. +# See for +# more details about ReplayGain. # This setting is off by default. - +# replaygain "auto" - +# # This setting sets the pre-amp used for files that have ReplayGain tags. By # default this setting is disabled. # @@ -370,22 +395,21 @@ replaygain "auto" # above its original level. If replaygain_limit is disabled such amplification # might occur. By default this setting is enabled. # -replaygain_limit "no" +replaygain_limit "yes" # # This setting enables on-the-fly normalization volume adjustment. This will -# result in the volume of all playing audio to be adjusted so the output has +# result in the volume of all playing audio to be adjusted so the output has # equal "loudness". This setting is disabled by default. # -#volume_normalization "yes" +#volume_normalization "no" # ############################################################################### # Character Encoding ########################################################## # -# If file or directory names do not display correctly for your locale then you +# If file or directory names do not display correctly for your locale then you # may need to modify this setting. # #filesystem_charset "UTF-8" # ############################################################################### -