安装 mpd mpc ncmpcpp
|
|
配置 mpd
|
|
创建并编辑 ~/.config/mpd/mpd.conf
# Required files db_file "~/.config/mpd/database" log_file "~/.config/mpd/log" # Optional music_directory "~/Music" playlist_directory "~/.config/mpd/playlists" pid_file "~/.config/mpd/pid" state_file "~/.config/mpd/state" sticker_file "~/.config/mpd/sticker.sql"
可能遇到的问题
第一个
listen: bind to ‘0.0.0.0:6600’ failed: Address already in use (continuing anyway, because binding to ‘[::]:6600’ succeeded)
- 解决方法: 在 ~/.config/mpd/mpd.conf 中添加如下
> ````nil
> bind_to_address "127.0.0.1"
> port: "6600"
> ````
第二个
hybrid_dsd: The Hybrid DSD decoder is disabled because it was not explicitly enable exception: Input plugin 'tidal' is unavailable: No Tidal application token configured exception: Input plugin 'qobuz' is unavailable: No Qobuz app_id configured
- 解决方法: 在 ~/.config/mpd/mpd.conf 中添加如下
> ``````nil
> # QOBUZ input plugin
> input {
> enabled "no"
> plugin "qobuz"
> # app_id "ID"
> # app_secret "SECRET"
> # username "USERNAME"
> # password "PASSWORD"
> # format_id "N"
> }
>
> # TIDAL input plugin
> input {
> enabled "no"
> plugin "tidal"
> # token "TOKEN"
> # username "USERNAME"
> # password "PASSWORD"
> # audioquality "Q"
> }
>
> # Decoder ######################################################################
> decoder {
> plugin "hybrid_dsd"
> enabled "no"
> # gapless "no"
> }
> ``````
第三个
No ‘audio_output’ defined in config file
- 解决方法: 在 ~/.config/mpd/mpd.conf 中添加如下
> ```````nil
> audio_output {
> type "alsa"
> name "Master"
> ## device "hw:0,0" # optional
> ## mixer_type "hardware" # optional
> ## mixer_device "default" # optional
> ## mixer_control "PCM" # optional
> ## mixer_index "0" # optional
> }
> ```````