Status audio field format for DSD

Discuss client development (or even MPD development if you feel so inclined), ask questions about the client libs, MPD feature requests from client developers, etc...
Post Reply
zhelezov
Posts: 1
Joined: May 11th, 2019, 3:52 pm

Status audio field format for DSD

Post by zhelezov » May 11th, 2019, 4:03 pm

Hi,

I was writing a simple app in Rust using the mpd crate when I hit upon this issue. The supposed format for the audio field of the status command response is

Code: Select all

*samplerate:bits:channels* 
according to the docs. I get the following while playing a DSF file:

Code: Select all

OK MPD 0.20.0
status
volume: 100
repeat: 0
random: 0
single: 0
consume: 0
playlist: 76
playlistlength: 6
mixrampdb: 0.000000
state: play
song: 0
songid: 51
time: 16:629
elapsed: 16.253
bitrate: 2822
duration: 628.993
audio: dsd64:2
nextsong: 1
nextsongid: 52
OK
Where can I find the specification for the possible formats of that field. The current implementation of the mpd crate expects three integer values separated with a column. Is it wrong in doing so?

max
Forum team
Posts: 900
Joined: January 15th, 2013, 3:43 pm

Re: Status audio field format for DSD

Post by max » May 13th, 2019, 9:53 am

Read The Fine Manual!

Here https://www.musicpd.org/doc/html/protoc ... d-s-status it says "audio: The format emitted by the decoder plugin during playback, format: *samplerate:bits:channels*. Check the user manual for a detailed explanation."

Here https://www.musicpd.org/doc/html/user.h ... io-outputs the user manual tells you possible values.

Post Reply