2022-04-18 12:58:49 +02:00
|
|
|
--- a/doc/mpdconf.example 2022-03-14 17:55:47.000000000 +0000
|
|
|
|
+++ b/doc/mpdconf.example 2022-04-19 04:52:49.436770322 +0000
|
2017-05-18 00:23:11 +02:00
|
|
|
@@ -10,14 +10,14 @@
|
|
|
|
# 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"
|
2021-02-05 23:14:22 +01:00
|
|
|
+music_directory "/sdcard/Music"
|
2017-05-18 00:23:11 +02:00
|
|
|
#
|
|
|
|
# This setting sets the MPD internal playlist directory. The purpose of this
|
2021-02-05 23:14:22 +01:00
|
|
|
# directory is storage for playlists created by MPD. The server will use
|
2017-05-18 00:23:11 +02:00
|
|
|
# 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 "~/.mpd/playlists"
|
|
|
|
#
|
|
|
|
# This setting sets the location of the MPD database. This file is used to
|
2021-02-05 23:14:22 +01:00
|
|
|
# load the database at server start up and store the database while the
|
2017-05-18 00:23:11 +02:00
|
|
|
@@ -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 "~/.mpd/database"
|
2022-01-16 19:37:22 +01:00
|
|
|
|
2017-05-18 00:23:11 +02:00
|
|
|
# These settings are the locations for the daemon log files for the daemon.
|
2022-01-16 19:37:22 +01:00
|
|
|
#
|
|
|
|
@@ -35,7 +35,7 @@
|
|
|
|
# If you use systemd, do not configure a log_file. With systemd, MPD
|
|
|
|
# defaults to the systemd journal, which is fine.
|
2017-05-18 00:23:11 +02:00
|
|
|
#
|
|
|
|
-#log_file "~/.mpd/log"
|
2021-02-05 23:14:22 +01:00
|
|
|
+log_file "~/.mpd/log"
|
2022-01-16 19:37:22 +01:00
|
|
|
|
2017-05-18 00:23:11 +02:00
|
|
|
# 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
|
2022-01-16 19:37:22 +01:00
|
|
|
@@ -43,19 +43,19 @@
|
|
|
|
#
|
|
|
|
# If you use systemd, do not configure a pid_file.
|
2017-05-18 00:23:11 +02:00
|
|
|
#
|
|
|
|
-#pid_file "~/.mpd/pid"
|
|
|
|
+pid_file "~/.mpd/pid"
|
2022-01-16 19:37:22 +01:00
|
|
|
|
2017-05-18 00:23:11 +02:00
|
|
|
# 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
|
2021-02-05 23:14:22 +01:00
|
|
|
# it was brought down. This setting is disabled by default and the server
|
2017-05-18 00:23:11 +02:00
|
|
|
# state will be reset on server start up.
|
|
|
|
#
|
|
|
|
-#state_file "~/.mpd/state"
|
|
|
|
+state_file "~/.mpd/state"
|
|
|
|
#
|
|
|
|
# The location of the sticker database. This is a database which
|
|
|
|
# manages dynamic information attached to songs.
|
|
|
|
#
|
|
|
|
-#sticker_file "~/.mpd/sticker.sql"
|
|
|
|
+sticker_file "~/.mpd/sticker.sql"
|
|
|
|
#
|
|
|
|
###############################################################################
|
|
|
|
|
2022-04-18 12:58:49 +02:00
|
|
|
@@ -81,16 +81,19 @@
|
2017-05-18 00:23:11 +02:00
|
|
|
# This setting can deny access to control of the daemon. Not effective if
|
2022-04-18 12:58:49 +02:00
|
|
|
# systemd socket activation is in use.
|
|
|
|
#
|
|
|
|
+# For local connections only
|
2017-05-18 00:23:11 +02:00
|
|
|
+#bind_to_address "localhost"
|
2022-04-18 12:58:49 +02:00
|
|
|
+#
|
2017-05-18 00:23:11 +02:00
|
|
|
# For network
|
|
|
|
#bind_to_address "any"
|
|
|
|
#
|
|
|
|
# And for Unix Socket
|
|
|
|
-#bind_to_address "~/.mpd/socket"
|
2022-04-18 12:58:49 +02:00
|
|
|
+#bind_to_address "@TERMUX_PREFIX@/var/run/mpd.socket"
|
2017-05-18 00:23:11 +02:00
|
|
|
#
|
|
|
|
# This setting is the TCP port that is desired for the daemon to get assigned
|
|
|
|
-# to.
|
2022-04-18 12:58:49 +02:00
|
|
|
+# to. Normally this is 6600 but for termux this port needs to be above 8000.
|
2017-05-18 00:23:11 +02:00
|
|
|
#
|
|
|
|
-#port "6600"
|
|
|
|
+#port "8600"
|
|
|
|
#
|
2020-10-18 00:04:14 +02:00
|
|
|
# Suppress all messages below the given threshold. Use "verbose" for
|
2021-02-05 23:14:22 +01:00
|
|
|
# troubleshooting. Available setting arguments are "notice", "info", "verbose",
|
2022-04-18 12:58:49 +02:00
|
|
|
@@ -135,12 +138,12 @@
|
2021-02-05 23:14:22 +01:00
|
|
|
# If this setting is set to "yes", MPD will discover audio files by following
|
2017-05-18 00:23:11 +02:00
|
|
|
# symbolic links outside of the configured music_directory.
|
|
|
|
#
|
|
|
|
-#follow_outside_symlinks "yes"
|
|
|
|
+follow_outside_symlinks "yes"
|
|
|
|
#
|
|
|
|
# If this setting is set to "yes", MPD will discover audio files by following
|
|
|
|
# symbolic links inside of the configured music_directory.
|
|
|
|
#
|
|
|
|
-#follow_inside_symlinks "yes"
|
|
|
|
+follow_inside_symlinks "yes"
|
|
|
|
#
|
|
|
|
###############################################################################
|
|
|
|
|
2022-04-18 12:58:49 +02:00
|
|
|
@@ -213,28 +216,6 @@
|
2017-05-18 00:23:11 +02:00
|
|
|
# blocks. Setting this block is optional, though the server will only attempt
|
|
|
|
# autodetection for one sound card.
|
|
|
|
#
|
|
|
|
-# 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 an OSS output:
|
|
|
|
-#
|
|
|
|
-#audio_output {
|
|
|
|
-# type "oss"
|
|
|
|
-# name "My OSS Device"
|
|
|
|
-## device "/dev/dsp" # optional
|
|
|
|
-## mixer_type "hardware" # optional
|
|
|
|
-## mixer_device "/dev/mixer" # optional
|
|
|
|
-## mixer_control "PCM" # optional
|
|
|
|
-#}
|
|
|
|
#
|
|
|
|
# An example of a shout output (for streaming to Icecast):
|
|
|
|
#
|
2022-04-18 12:58:49 +02:00
|
|
|
@@ -265,7 +246,8 @@
|
2017-05-18 00:23:11 +02:00
|
|
|
# type "recorder"
|
|
|
|
# name "My recorder"
|
|
|
|
# encoder "vorbis" # optional, vorbis or lame
|
|
|
|
-# path "/var/lib/mpd/recorder/mpd.ogg"
|
|
|
|
+## for termux changed "path" to somewhere on android that works
|
|
|
|
+# path "~/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"
|
2022-04-18 12:58:49 +02:00
|
|
|
@@ -295,55 +277,31 @@
|
2020-10-18 00:04:14 +02:00
|
|
|
## media_role "media_role" #optional
|
2017-05-18 00:23:11 +02:00
|
|
|
#}
|
|
|
|
#
|
|
|
|
-# An example of a winmm output (Windows multimedia API).
|
|
|
|
-#
|
|
|
|
-#audio_output {
|
|
|
|
-# type "winmm"
|
|
|
|
-# name "My WinMM output"
|
|
|
|
-## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
|
|
|
|
-# or
|
|
|
|
-## device "0" # optional
|
|
|
|
-## mixer_type "hardware" # optional
|
|
|
|
-#}
|
2020-10-18 00:04:14 +02:00
|
|
|
-#
|
|
|
|
-# 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
|
|
|
|
-#}
|
2017-05-18 00:23:11 +02:00
|
|
|
+# An example of an opensl android output.
|
|
|
|
+audio_output {
|
|
|
|
+ type "sles"
|
|
|
|
+ name "OpenSLES output"
|
|
|
|
+ mixer_type "software"
|
|
|
|
+}
|
|
|
|
#
|
|
|
|
# An example of an openal output.
|
|
|
|
#
|
|
|
|
-#audio_output {
|
|
|
|
-# type "openal"
|
|
|
|
-# name "My OpenAL output"
|
|
|
|
-## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
|
|
|
|
-#}
|
|
|
|
-#
|
|
|
|
-# An example of an sndio output.
|
|
|
|
-#
|
|
|
|
-#audio_output {
|
|
|
|
-# type "sndio"
|
|
|
|
-# name "sndio output"
|
2019-01-03 00:49:06 +01:00
|
|
|
-# mixer_type "hardware"
|
2017-05-18 00:23:11 +02:00
|
|
|
-#}
|
|
|
|
-#
|
|
|
|
-# An example of an OS X output:
|
2019-01-03 00:49:06 +01:00
|
|
|
-#
|
|
|
|
-#audio_output {
|
|
|
|
-# type "osx"
|
|
|
|
-# name "My OS X Device"
|
|
|
|
-## device "Built-in Output" # optional
|
|
|
|
-## channel_map "-1,-1,0,1" # optional
|
|
|
|
-#}
|
2017-05-18 00:23:11 +02:00
|
|
|
+audio_output {
|
|
|
|
+ type "openal"
|
|
|
|
+ name "OpenAL output"
|
|
|
|
+ mixer_type "software"
|
|
|
|
+ device "OpenSL"
|
|
|
|
+ enabled "no"
|
|
|
|
+}
|
|
|
|
+#Fifo output for visualizations in ncmpcpp-git
|
2019-01-03 00:49:06 +01:00
|
|
|
+audio_output {
|
2017-05-18 00:23:11 +02:00
|
|
|
+ type "fifo"
|
|
|
|
+ name "ncmpcpp visualizer"
|
2022-01-30 15:15:57 +01:00
|
|
|
+ path "@TERMUX_PREFIX@/var/run/mpd.fifo"
|
2017-07-18 13:01:27 +02:00
|
|
|
+ format "44100:16:2"
|
2017-05-18 00:23:11 +02:00
|
|
|
+ enabled "no"
|
|
|
|
+}
|
|
|
|
+
|
2020-10-18 00:04:14 +02:00
|
|
|
#
|
2017-05-18 00:23:11 +02:00
|
|
|
## Example "pipe" output:
|
|
|
|
#
|