Advertisement
Guest User

Untitled

a guest
Aug 10th, 2010
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.29 KB | None | 0 0
  1. # An example configuration file for MPD
  2. # See the mpd.conf man page for a more detailed description of each parameter.
  3.  
  4. ######################## REQUIRED PATHS ########################
  5. # You can put symlinks in here, if you like. Make sure that
  6. # the user that mpd runs as (see the 'user' config parameter)
  7. # can read the files in this directory.
  8. music_directory "/media/data/lamusique"
  9. playlist_directory "/var/lib/mpd/playlists"
  10. db_file "/var/lib/mpd/tag_cache"
  11. log_file "/var/log/mpd/mpd.log"
  12. error_file "/var/log/mpd/errors.log"
  13. pid_file "/var/run/mpd/pid"
  14. ################################################################
  15.  
  16.  
  17. ######################## OPTIONAL PATHS ########################
  18. #
  19. # If specified, MPD will save its current state (playlist,
  20. # current song, playing/paused, etc.) at exit. This will be
  21. # used to restore the session the next time it is run.
  22. #
  23. state_file "/var/lib/mpd/state"
  24. #
  25. ################################################################
  26.  
  27.  
  28. ######################## DAEMON OPTIONS ########################
  29. #
  30. # If started as root, MPD will drop root privileges and run as
  31. # this user instead. Otherwise, MPD will run as the user it was
  32. # started by. If left unspecified, MPD will not drop root
  33. # privileges at all (not recommended).
  34. #
  35. user "mpd"
  36. #
  37. # The address and port to listen on.
  38. #
  39. # For privacy, we default to the loopback interface. In Debian, "localhost"
  40. # may resolve to both an IPv4 and an IPv6 address. For MPD 0.13 or earlier,
  41. # it is recommended to only use one or the other.
  42. #
  43. #bind_to_address "localhost"
  44. port "6600"
  45. #
  46. # Controls the amount of information that is logged. Can be
  47. # "default", "secure", or "verbose".
  48. #
  49. #log_level "default"
  50. #
  51. ################################################################
  52.  
  53.  
  54. ########################## PERMISSIONS #########################
  55. #
  56. # MPD can require that users specify a password before using it.
  57. # You may specify one ore more here, along with what users who
  58. # log in with that password are allowed to do.
  59. #
  60. #password "password@read,add,control,admin"
  61. #
  62. # Specifies what permissions a user who has not logged in with a
  63. # password has. By default, all users have full access to MPD
  64. # if no password is specified above, or no access if one or
  65. # more passwords are specified.
  66. #
  67. #default_permissions "read,add,control,admin"
  68. #
  69. ################################################################
  70.  
  71.  
  72. ########################## AUDIO OUTPUT ########################
  73. #
  74. # MPD supports many audio output types, as well as playing
  75. # through multiple audio outputs at the same time. You can
  76. # specify one or more here. If you don't specify any, MPD will
  77. # automatically scan for a usable audio output.
  78. #
  79. # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs>
  80. # for examples of other audio outputs.
  81. #
  82. # An example of an ALSA output:
  83. #
  84. #audio_output {
  85. # type "alsa"
  86. # name "My ALSA Device"
  87. # device "hw:0,0" # optional
  88. # format "44100:16:2" # optional
  89. #}
  90. #
  91. # An example of an OSS output:
  92. #
  93. #audio_output {
  94. # type "oss"
  95. # name "My OSS Device"
  96. # device "/dev/dsp" # optional
  97. # format "44100:16:2" # optional
  98. #}
  99. #
  100. # An example of a shout output (for streaming to Icecast):
  101. #
  102. #audio_output {
  103. # type "shout"
  104. # name "My Shout Stream"
  105. # host "localhost"
  106. # port "8000"
  107. # mount "/mpd.ogg"
  108. # password "hackme"
  109. # quality "5.0"
  110. # bitrate "128"
  111. # format "44100:16:1"
  112. # user "source" # optional
  113. # description "My Stream Description" # optional
  114. # genre "jazz" # optional
  115. # public "no" # optional
  116. #}
  117. #
  118. # Force all decoded audio to be converted to this format before
  119. # being passed to the audio outputs.
  120. #
  121. #audio_output_format "44100:16:2"
  122. #
  123. ################################################################
  124.  
  125.  
  126. ############################# MIXER ############################
  127. #
  128. # MPD needs to know what mixer settings to change when you
  129. # adjust the volume. If you don't specify one here, MPD will
  130. # pick one based on which ones it was compiled with support for.
  131. #
  132. # An example for controlling an ALSA mixer:
  133. #
  134. #mixer_type "alsa"
  135. #mixer_device "default"
  136. #mixer_control "PCM"
  137. #
  138. # An example for controlling an OSS mixer:
  139. #
  140. #mixer_type "oss"
  141. #mixer_device "/dev/mixer"
  142. #mixer_control "PCM"
  143. #
  144. # If you want MPD to adjust the volume of audio sent to the
  145. # audio outputs, you can tell it to use the software mixer:
  146. #
  147. #mixer_type "software"
  148. #
  149. ################################################################
  150.  
  151.  
  152. ######################### NORMALIZATION ########################
  153. #
  154. # Specifies the type of ReplayGain to use. Can be "album" or
  155. # "track". ReplayGain will not be used if not specified. See
  156. # <http://www.replaygain.org> for more details.
  157. #
  158. #replaygain "album"
  159. #
  160. # Sets the pre-amp used for files that have ReplayGain tags.
  161. #
  162. #replaygain_preamp "0"
  163. #
  164. # Enable on the fly volume normalization. This will cause the
  165. # volume of all songs played to be adjusted so that they sound
  166. # as though they are of equal loudness.
  167. #
  168. #volume_normalization "no"
  169. #
  170. ################################################################
  171.  
  172.  
  173. ########################### BUFFERING ##########################
  174. #
  175. # The size of the buffer containing decoded audio. You probably
  176. # shouldn't change this.
  177. #
  178. #audio_buffer_size "2048"
  179. #
  180. # How much of the buffer to fill before beginning to play.
  181. #
  182. #buffer_before_play "0%"
  183. #
  184. # Similar options for the HTTP stream buffer. If you hear
  185. # skipping while playing HTTP streams, you may wish to increase
  186. # these.
  187. #
  188. #http_buffer_size "128"
  189. #http_prebuffer_size "25%"
  190. #
  191. ################################################################
  192.  
  193.  
  194. ########################### HTTP PROXY #########################
  195. #
  196. # Specifies the HTTP proxy to use for playing HTTP streams.
  197. #
  198. #http_proxy_host "proxy.isp.com"
  199. #http_proxy_port "8080"
  200. #http_proxy_user "user"
  201. #http_proxy_password "password"
  202. #
  203. ################################################################
  204.  
  205.  
  206. ############################# LIMITS ###########################
  207. #
  208. # These are various limits to prevent MPD from using too many
  209. # resources. You should only change them if they start
  210. # restricting your usage of MPD.
  211. #
  212. #connection_timeout "60"
  213. #max_connections "5"
  214. #max_playlist_length "16384"
  215. #max_command_list_size "2048"
  216. #max_output_buffer_size "8192"
  217. #
  218. ################################################################
  219.  
  220.  
  221. ###################### CHARACTER ENCODINGS #####################
  222. #
  223. # If file or directory names do not display correctly, then you
  224. # may need to change this. In most cases it should be either
  225. # "ISO-8859-1" or "UTF-8". You must recreate your database
  226. # after changing this (use mpd --create-db).
  227. #
  228. filesystem_charset "UTF-8"
  229. #
  230. # The encoding that ID3v1 tags should be converted from.
  231. #
  232. id3v1_encoding "UTF-8"
  233. #
  234. ################################################################
  235.  
  236.  
  237. ######################### OTHER OPTIONS ########################
  238. #
  239. # The metadata types MPD will recognize.
  240. #
  241. #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
  242. #
  243. # Enable this if you wish to use your MPD created playlists in
  244. # other music players.
  245. #
  246. #save_absolute_paths_in_playlists "no"
  247. #
  248. ################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement