我在做什么?
我正在尝试首次让 mpd 工作,以便可以在多个 Linux 设备上传输音频。我的 mpd.conf 文件显示:
music_directory "/home/john-mcbride/.mpd/music"
playlist_directory "/home/john-mcbride/.mpd/playlists"
db_file "/home/john-mcbride/.mpd/tag_cache"
log_file "/home/john-mcbride/.mpd/mpd.log"
pid_file "/home/john-mcbride/.mpd/mpd.pid"
state_file "/home/john-mcbride/.mpd/state"
sticker_file "/home/john-mcbride/.mpd/sticker.sql"
user "john-mcbride"
bind_to_address "any"
input {
plugin "curl"
}
audio_output {
type "alsa"
name "My ALSA Device"
}
audio_output {
type "pulse"
name "My Pulse Output"
server "localhost" # optional
}
出了什么问题?
当我运行 ncmpcpp 时,曲目停留在暂停状态。以下是来自 mpd.log 文件的详细信息:
Jul 30 19:49 : player: problems opening audio device while playing "Music/Electro/Aphex Twin/AFX/1994 - Analogue Bubblebath (CD EP)/04 A F X 2.mp3"
Jul 30 19:51 : state_file: failed to create /home/john-mcbride/.mpd/state: Permission denied
Jul 30 19:51 : player: played "Music/Electro/Aphex Twin/AFX/1994 - Analogue Bubblebath (CD EP)/04 A F X 2.mp3"
Jul 30 19:51 : avahi: Service 'Music Player' successfully established.
Jul 30 19:51 : alsa_mixer: Failed to read mixer for 'My ALSA Device': no such mixer control: PCM
当我注释掉 ALSA 行时,我也收到 Pulse 错误:
Jul 30 19:49 : pulse_output: Failed to open "My Pulse Output" [pulse]: failed to connect: Connection refused
这些是我遇到的一系列问题中的最新一个。每次我以为已经修复了某个问题时,都会出现不同的错误。目前,它似乎是 ALSA、Pulse 和 mpd 权限的混合体。
问题!
那么,您能建议我应该怎么做才能使用 mpd 播放音乐吗?您能指出我这样做有什么根本问题吗(考虑到我希望能够在多个设备上访问它)?