improved audio_output_format parsing

This commit is contained in:
Martin Wagner 2020-09-11 13:57:39 +02:00
parent e79b6f8d6f
commit 03f2ccd747

View File

@ -786,6 +786,8 @@ class Client(MPDClient):
elif key == "audio":
# see: https://www.musicpd.org/doc/html/user.html#audio-output-format
samplerate, bits, channels=val.split(':')
if bits == "f":
bits="32fp"
self.emitter.emit("audio", samplerate, bits, channels)
elif key == "volume":
self.emitter.emit("volume_changed", float(val))