第四步安装和配置播放软件MPD(详细步骤在四楼)
安装和配置播放软件MPD
安装:
sudo apt-get install mpd
配置:
在配置文件/etc/mpd.conf中,添加或修改以下配置:
# 文件和目录的配置,根据实际进行配置:
music_directory "/home/usbaudio/share/music"
#
playlist_directory "/home/usbaudio/share/playlist"
db_file
"/var/lib/mpd/tag_cache"
log_file
"/var/log/mpd/mpd.log"
pid_file "/var/run/mpd/pid"
state_file "/var/lib/mpd/state"
sticker_file
"/var/lib/mpd/sticker.sql"
# MPD通用参数的配置
user "mpd"
group "audio"
# For network
#bind_to_address "localhost"
port "6600"
auto_update "yes"
# Symbolic link
behavior ######################################################
follow_outside_symlinks "yes"
follow_inside_symlinks "yes"
# Zeroconf / Avahi
Service Discovery ##########################################
zeroconf_enabled "yes"
zeroconf_name "debianmusic"
# 语音输出配置
audio_output {
type "alsa"
name "My Alsa Device"
device "hw:0,0" #HW后面第一个数字就USB-Audio设备号对应
}
# Volume control
mixer ########################################################
#mixer_type "hardware"
#mixer_type "software"
mixer_type "disabled"
# Character
Encoding ##########################################################
filesystem_charset "UTF-8"
id3v1_encoding "UTF-8"
##############################################################################