decoder/{dsf,dsdiff}: fix displayed bit rate
The formula did not consider the channel count. Closes https://github.com/MusicPlayerDaemon/MPD/issues/639
This commit is contained in:
parent
193e637dd9
commit
0da9c91af2
2
NEWS
2
NEWS
|
@ -1,4 +1,6 @@
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue