wm-logs/home/mpd/mpd.conf

30 lines
617 B
Plaintext
Raw Normal View History

2023-07-06 14:48:18 +08:00
## mpd 配置
music_directory "/data/music"
playlist_directory "~/.mpd/playlists"
db_file "~/.mpd/mpd.db"
log_file "~/.mpd/mpd.log"
pid_file "~/.mpd/mpd.pid"
state_file "~/.mpd/mpdstate"
bind_to_address "127.0.0.1"
port "6600"
audio_output {
type "pulse"
name "pulse audio"
}
2023-07-07 12:23:24 +08:00
# 可视化频谱, 用于给mpd客户端, 如ncmpcpp用的。 不需要这个功能, 可以注释掉这个配置
audio_output {
type "fifo"
name "my_fifo"
path "/tmp/mpd.fifo"
format "44100:16:2"
}
2023-07-06 14:48:18 +08:00
## mpc 客户端
# `mpc update` 更新读取配置
# `mpc listall | mpc add` 将歌曲加入播放列表
# `mpc play` 播放