Commit 0da9c91a authored by Max Kellermann's avatar Max Kellermann

decoder/{dsf,dsdiff}: fix displayed bit rate

The formula did not consider the channel count. Closes https://github.com/MusicPlayerDaemon/MPD/issues/639
parent 193e637d
ver 0.21.15 (not yet released)
* decoder
- dsdiff, dsf: fix displayed bit rate
ver 0.21.14 (2019/08/21)
* decoder
......
......@@ -408,7 +408,7 @@ dsdiff_decode_chunk(DecoderClient &client, InputStream &is,
bit_reverse_buffer(buffer, buffer + nbytes);
cmd = client.SubmitData(is, buffer, nbytes,
sample_rate / 1000);
channels * sample_rate / 1000);
}
return true;
......
......@@ -291,7 +291,7 @@ dsf_decode_chunk(DecoderClient &client, InputStream &is,
cmd = client.SubmitData(is,
interleaved_buffer, block_size,
sample_rate / 1000);
channels * sample_rate / 1000);
++i;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment