Custom SoX resampler settings breaks MPD #1743
Unanswered
sdhannay
asked this question in
Fixed Issues
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First, thanks for rAudio !
Looks like the parsing/writing of the 'phase_response' field for the soxr config is missing a delimiter '"' at the start.
This causes the MPD restart to fail.
For this test example I selected custom config and only changed only the precision to 32.
Workaround is to manually edit the soxr.conf file.
Example error is below.
`
/srv/http/data/mpdconf/mpd.conf
bind_to_address "0.0.0.0"
db_file "/srv/http/data/mpd/mpd.db"
music_directory "/mnt/MPD"
playlist_directory "/srv/http/data/playlists"
state_file "/var/lib/mpd/mpdstate"
user "mpd"
input {
plugin "curl"
}
audio_output {
name "On-board Headphones"
device "hw:1,0"
type "alsa"
auto_resample "no"
auto_format "no"
mixer_type "none"
}
resampler {
plugin "soxr"
quality "custom"
precision "32"
phase_response 50"
passband_end "91.3"
stopband_begin "100"
attenuation "0"
flags "0"
}
systemctl status mpd
× mpd.service - Music Player Daemon
Loaded: loaded (/usr/lib/systemd/system/mpd.service; disabled; preset: disabled)
Drop-In: /usr/lib/systemd/system/mpd.service.d
└─00-arch.conf
/etc/systemd/system/mpd.service.d
└─override.conf
Active: failed (Result: exit-code) since Wed 2024-08-21 15:44:17 CDT; 36s ago
Duration: 10.047s
Invocation: 59e57a1294174396a291889357043c09
Docs: man:mpd(1)
man:mpd.conf(5)
Process: 15275 ExecStart=/usr/bin/mpd --systemd /srv/http/data/mpdconf/mpd.conf (code=exited, status=1/FAILURE)
Main PID: 15275 (code=exited, status=1/FAILURE)
CPU: 446ms
Aug 21 15:44:16 rAudio systemd[1]: Starting Music Player Daemon...
Aug 21 15:44:17 rAudio mpd[15275]: exception: Error in /srv/http/data/mpdconf/mpd.conf line 24; Error in /srv/http/data/mpdconf/soxr.conf line 5; '"' expected
Aug 21 15:44:17 rAudio systemd[1]: mpd.service: Main process exited, code=exited, status=1/FAILURE
Aug 21 15:44:17 rAudio systemd[1]: mpd.service: Failed with result 'exit-code'.
Aug 21 15:44:17 rAudio systemd[1]: Failed to start Music Player Daemon.
PLAYER
0.23.15-5
2 4
2024-08-20 • 12:08 (MPD: 1s + Cache: 0s)
`
Beta Was this translation helpful? Give feedback.
All reactions