mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
improved audio_output_format parsing
This commit is contained in:
parent
e79b6f8d6f
commit
03f2ccd747
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user