Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:frispete:mpd
mpd
mpd-mpdconf_suse.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mpd-mpdconf_suse.patch of Package mpd
Index: b/doc/mpdconf.example =================================================================== --- a/doc/mpdconf.example +++ b/doc/mpdconf.example @@ -17,7 +17,7 @@ # 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" +#playlist_directory "/var/lib/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 @@ -25,7 +25,7 @@ # MPD to accept files over ipc socket (using file:// protocol) or streaming # files over an accepted protocol. # -#db_file "~/.mpd/database" +#db_file "/var/lib/mpd/mpd.db" # # These settings are the locations for the daemon log files for the daemon. # These logs are great for troubleshooting, depending on your log_level @@ -34,25 +34,25 @@ # The special value "syslog" makes MPD use the local syslog daemon. This # setting defaults to logging to syslog, otherwise logging is disabled. # -#log_file "~/.mpd/log" +#log_file "syslog" # # This setting sets the location of the file which stores the process ID # for use of mpd --kill and some init scripts. This setting is disabled by # default and the pid file will not be stored. # -#pid_file "~/.mpd/pid" +#pid_file "/var/lib/mpd/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 # state will be reset on server start up. # -#state_file "~/.mpd/state" +#state_file "/var/lib/mpd/mpdstate" # # The location of the sticker database. This is a database which # manages dynamic information attached to songs. # -#sticker_file "~/.mpd/sticker.sql" +#sticker_file "/var/lib/mpd/sticker.sql" # ############################################################################### @@ -64,14 +64,14 @@ # initialization. This setting is disabled by default and MPD is run as the # current user. # -#user "nobody" +#user "mpd" # # 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). # This is useful if MPD needs to be a member of group such as "audio" to # have permission to use sound card. # -#group "nogroup" +#group "audio" # # 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. @@ -146,6 +146,38 @@ ############################################################################### +# Resource Limitations ######################################################## +# +# These settings are various limitations to prevent MPD from using too many +# resources (denial of service). +# +# If a client does not send any new data in this time period, the connection is +# closed. Clients waiting in "idle" mode are excluded from this. Default is 60. +# +#connection_timeout "60" +# +# This specifies the maximum number of clients that can be connected to MPD at +# the same time. Default is 5. +# +#max_connections "5" +# +# The maximum number of songs that can be in the playlist. Default is 16384. +# +#max_playlist_length "16384" +# +# The maximum size a command list in KB. Default is 2048 (2 MiB). +# +#max_command_list_size "2048" +# +# The maximum size of the output buffer to a client (maximum response size) in +# KB. This value may need tweaking, if your collection is huge, and the client +# uses the mpd 'listallinfo' (e.g. cantata does). Default is 8192 (8 MiB). +# +#max_output_buffer_size "8192" +# +############################################################################### + + # Zeroconf / Avahi Service Discovery ########################################## # # If this setting is set to "yes", service information will be published with @@ -175,9 +207,13 @@ ############################################################################### -# Database ####################################################################### +# Database #################################################################### +# +# Plugin proxy provides access to the database of another MPD instance using +# libmpdclient. This is useful when you mount the music directory via NFS/SMB, +# and the file server already runs a MPD instance. Only the file server needs +# to update the database. This setting mutually excludes the db_file settting. # - #database { # plugin "proxy" # host "other.mpd.host" @@ -186,7 +222,8 @@ # Input ####################################################################### # - +# Plugin curl opens remote files or streams over HTTP. +# input { plugin "curl" # proxy "proxy.isp.com:8080" @@ -206,15 +243,32 @@ input { # # An example of an ALSA output: # +audio_output { + type "alsa" + name "My ALSA Device" + device "hw:0,0" # optional + mixer_type "hardware" # optional + mixer_device "default" # optional + mixer_control "PCM" # optional + mixer_index "0" # optional +} + +# An example of a PulseAudio output: +# +# Streaming to a local or remote pulseaudio server +# +# In order to control the _local_ pulseaudio server as a user, you need to run +# mpd as that (primary) user (see user and group setting), and change +# permissions accordingly: +# chown -R user:group /var/lib/mpd +# #audio_output { -# type "alsa" -# name "My ALSA Device" -## device "hw:0,0" # optional -## mixer_type "hardware" # optional -## mixer_device "default" # optional -## mixer_control "PCM" # optional -## mixer_index "0" # optional +# type "pulse" +# name "Mpd Pulse Output" +## server "remote_server" # optional +## sink "remote_server_sink" # optional #} + # # An example of an OSS output: # @@ -237,9 +291,9 @@ input { # port "8000" # mount "/mpd.ogg" # password "hackme" -# quality "5.0" # bitrate "128" -# format "44100:16:1" +# format "44100:16:2" +# quality "5.0" ## protocol "icecast2" # optional ## user "source" # optional ## description "My Stream Description" # optional @@ -259,7 +313,7 @@ input { # path "/var/lib/mpd/recorder/mpd.ogg" ## quality "5.0" # do not define if bitrate is defined # bitrate "128" # do not define if quality is defined -# format "44100:16:1" +# format "44100:16:2 #} # # An example of a httpd output (built-in HTTP streaming server): @@ -272,19 +326,10 @@ input { # bind_to_address "0.0.0.0" # optional, IPv4 or IPv6 ## quality "5.0" # do not define if bitrate is defined # bitrate "128" # do not define if quality is defined -# format "44100:16:1" +# format "44100:16:2" # max_clients "0" # optional 0=no limit #} # -# An example of a pulseaudio output (streaming to a remote pulseaudio server) -# -#audio_output { -# type "pulse" -# name "My Pulse Output" -## server "remote_server" # optional -## sink "remote_server_sink" # optional -#} -# # An example of a winmm output (Windows multimedia API). # #audio_output { @@ -378,7 +423,7 @@ input { # If file or directory names do not display correctly for your locale then you # may need to modify this setting. # -#filesystem_charset "UTF-8" +filesystem_charset "UTF-8" # # This setting controls the encoding that ID3v1 tags should be converted from. #
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor