From 06ec7b15099faf77cc4d7d0649aa8bede0d35238 Mon Sep 17 00:00:00 2001 From: Ivan Shapovalov Date: Tue, 20 Aug 2013 04:35:51 +0400 Subject: [PATCH] Update and tune .mpd.conf. --- .mpd.conf | 128 +++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 99 insertions(+), 29 deletions(-) diff --git a/.mpd.conf b/.mpd.conf index f7ad734..7a5fcd5 100644 --- a/.mpd.conf +++ b/.mpd.conf @@ -10,7 +10,7 @@ # be disabled and audio files will only be accepted over ipc socket (using # file:// protocol) or streaming files over an accepted protocol. # -music_directory "~/Music" +music_directory "~/Музыка" # # This setting sets the MPD internal playlist directory. The purpose of this # directory is storage for playlists created by MPD. The server will use @@ -64,7 +64,7 @@ state_file "~/.mpd/mpdstate" # initialization. This setting is disabled by default and MPD is run as the # current user. # -user "alex" +#user "" # # This setting specifies the group that MPD will run as. If not specified # primary group of user specified with "user" setting will be used (if set). @@ -86,7 +86,7 @@ user "alex" # This setting is the TCP port that is desired for the daemon to get assigned # to. # -#port "7600" +#port "6600" # # This setting controls the type of information which is logged. Available # setting arguments are "default", "secure" or "verbose". The "verbose" setting @@ -101,23 +101,27 @@ user "alex" # (available from ), at which # point gapless MP3 playback can be enabled. # -#gapless_mp3_playback "yes" +gapless_mp3_playback "yes" +# +# Setting "restore_paused" to "yes" puts MPD into pause mode instead +# of starting playback after startup. +# +#restore_paused "no" # # This setting enables MPD to create playlists in a format usable by other # music players. # #save_absolute_paths_in_playlists "no" # -# This setting defines a list of tag types that will be extracted during the -# audio file discovery process. Optionally, 'comment' can be added to this -# list. -# +# This setting defines a list of tag types that will be extracted during the +# audio file discovery process. The complete list of possible values can be +# found in the mpd.conf man page. #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc" # # This setting enables automatic update of MPD's database when files in # music_directory are changed. # -#auto_update "yes" +auto_update "yes" # # Limit the depth of the directories being watched, 0 means only watch # the music directory itself. There is no limit by default. @@ -147,12 +151,12 @@ follow_inside_symlinks "yes" # If this setting is set to "yes", service information will be published with # Zeroconf / Avahi. # -#zeroconf_enabled "yes" +zeroconf_enabled "yes" # # The argument to this setting will be the Zeroconf / Avahi unique name for # this MPD server on the network. # -#zeroconf_name "Music Player" +zeroconf_name "mpd on intelfx-laptop/intelfx" # ############################################################################### @@ -174,12 +178,12 @@ follow_inside_symlinks "yes" # Input ####################################################################### # -#input { - #plugin "curl" +input { + plugin "curl" # proxy "proxy.isp.com:8080" # proxy_user "user" # proxy_password "password" -#} +} # ############################################################################### @@ -196,16 +200,16 @@ follow_inside_symlinks "yes" # # An example of an ALSA output: # -audio_output { - type "alsa" - name "MPD" - device "pulse" # optional +#audio_output { +# type "alsa" +# name "My ALSA Device" +## device "hw:0,0" # optional ## format "44100:16:2" # optional -# mixer_type "hardware" # optional -# mixer_device "pulse" # optional - mixer_control "Master" # optional +## mixer_type "hardware" # optional +## mixer_device "default" # optional +## mixer_control "PCM" # optional ## mixer_index "0" # optional -} +#} # # An example of an OSS output: # @@ -235,6 +239,7 @@ audio_output { ## protocol "icecast2" # optional ## user "source" # optional ## description "My Stream Description" # optional +## url "http://example.com" # optional ## genre "jazz" # optional ## public "no" # optional ## timeout "2" # optional @@ -269,11 +274,30 @@ audio_output { # # An example of a pulseaudio output (streaming to a remote pulseaudio server) # +audio_output { + type "pulse" + name "Local PA output" +## server "remote_server" # optional +## sink "remote_server_sink" # optional +} +# +# An example of a winmm output (Windows multimedia API). +# #audio_output { - #type "pulse" - #name "My Pulse Output" -# server "localhost" # optional - #sink "alsa_output.usb-Roland_UA-25EX-00-UA25EX.analog-stereo" # optional +# type "winmm" +# name "My WinMM output" +## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional +# or +## device "0" # optional +## mixer_type "hardware" # optional +#} +# +# An example of an openal output. +# +#audio_output { +# type "openal" +# name "My OpenAL output" +## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional #} # ## Example "pipe" output: @@ -322,16 +346,33 @@ audio_output { # Normalization automatic volume adjustments ################################## # # This setting specifies the type of ReplayGain to use. This setting can have -# the argument "off", "album" or "track". See -# for more details. This setting is off by default. +# 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. +# This setting is off by default. # -#replaygain "album" +replaygain "auto" # # This setting sets the pre-amp used for files that have ReplayGain tags. By # default this setting is disabled. # #replaygain_preamp "0" # +# This setting sets the pre-amp used for files that do NOT have ReplayGain tags. +# By default this setting is disabled. +# +#replaygain_missing_preamp "0" +# +# This setting enables or disables ReplayGain limiting. +# MPD calculates actual amplification based on the ReplayGain tags +# and replaygain_preamp / replaygain_missing_preamp setting. +# If replaygain_limit is enabled MPD will never amplify audio signal +# above its original level. If replaygain_limit is disabled such amplification +# might occur. By default this setting is enabled. +# +#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 # equal "loudness". This setting is disabled by default. @@ -372,6 +413,35 @@ audio_output { # ############################################################################### +# Client TCP keep alive ####################################################### +# +# For clients connected by TCP on supported platforms. +# Allows detection of dangling connections due to clients disappearing from +# the network without closing their connections. +# +# This is not usually necessary but can be useful in cases such as wifi connectected +# clients that go in and out of network range or turn off wifi without closing their +# connections. Combined with low max_connections this can soon cause clients to not +# be able to connect. +# +# +# Enable tcp keepalive on new client connections (default is "no") +# +#tcp_keep_alive "no" +# +# Time in seconds since the last communication on the connection and before +# the keepalive probing is started. (default is 7200 seconds) +#tcp_keep_alive_idle "7200" +# +# Interval in seconds between keepalive probes, once a probe started. +# (default is 75 seconds) +#tcp_keep_alive_interval "75" +# +# Number of failed probes before the connection is pronounced dead and +# the connection is closed. (default is 9 times) +#tcp_keep_alive_count "9" +# +############################################################################### # Character Encoding ########################################################## #