Author Topic: Incorrect sample rates  (Read 2203 times)

kamen

  • Newbie
  • *
  • Posts: 7
Some peculiarities with the sample rate returned by the API and also visible in the MusicBee UI:

1) Missing accuracy in kHz
Actual file sample rate -> API sample rate
11025 Hz -> 11 kHz (missing accuracy)
19999 Hz -> 19 kHz (missing accuracy)
20000 Hz -> 20 kHz (correct)
20000 Hz -> 20 kHz (missing accuracy)
88200 Hz -> 88.2 kHz (correct)

2) DSD files report different number separator and kHz/mHz mismatch:
DSD64  -> 2.8244 mHz (correct)
DSD128 -> 5,644 kHz (wrong number separtor, wrong unit)

The above examples can be viewed as a bug or be solved through additional API entry for precision sample rate in Hz.

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34369
most of those are addressed now:
https://getmusicbee.com/patches/MusicBee35_Patched.zip
unzip and replace the existing musicbee application files

kamen

  • Newbie
  • *
  • Posts: 7
Thank you for the new version provided. The results there look as follows:
11025 Hz -> 11.025 kHz (now correct)
19999 Hz -> 19 kHz (remains the same)
20000 Hz -> 20 kHz (correct)
20001 Hz -> 20 kHz (remains the same)
88200 Hz -> 88.2 kHz (correct)
22050 -> 20.05 kHz (not previously stated, but now corrected too)

2) DSD files report different number separator and kHz/mHz mismatch:
DSD64  -> 2.8244 mHz (correct)
DSD128 -> 5.644 mHz (now correct)

Overall for the typical sampling rates it looks to work as it should now. For the non-typical it will down-cast the sampling rate (19xxx becomes 19 kHz), which could be a concern only in rare cases.

hiccup

  • Sr. Member
  • ****
  • Posts: 7907
For the non-typical it will down-cast the sampling rate (19xxx becomes 19 kHz), which could be a concern only in rare cases.
I am curious: why is this matter important to you?