Author Topic: Issue with Automatic Sample Rate Switching in MusicBee 3.6.x  (Read 1012 times)

tubescreamer

  • Jr. Member
  • **
  • Posts: 92
Hi,
I installed MusicBee 3.6.x this morning, and it reintroduced an old issue—MusicBee no longer changes the sample rate automatically.
When the sample rate changes then contend of higher sample rate is being played much too slow.

I restored my backup from this morning with version 3.5.8698, and everything works as expected there.
Could you kindly check and fix this in the latest release? That would be fantastic.

When I requested this a few years ago, MusicBee was one of the few players that supported automatic sample rate switching
for music content (though not ASIO buffer size changes like DAWs).
This feature is crucial for users with large libraries containing tracks of different sample rates.

Many thanks in advance.

System Info:
    Windows 10 Pro 22H2
    RME UFX III, ASIO driver: MADIface driver 1.0

hiccup

  • Hero Member
  • *****
  • Posts: 9111
It may be accidental, but I am encountering something similar while testing the UPnP2025 plugin:

This is what happens using that plugin:

With 'force transcoding' enabled,
- output format: mp3
- output sample rate: same as source

Opus files will play at a lower pitch than mp3 and flac files.
(maybe related to Opus (fullband) sample rate being 48 kHz?)

When setting the output sample rate to 48 kHz , mp3 and flac will now also play at a lower pitch.
And when lowering the sample rate, all file types will play at a higher pitch. (and vice-versa)
Last Edit: April 03, 2025, 07:50:06 PM by hiccup

BoringName

  • Sr. Member
  • ****
  • Posts: 916
Opus files will play at a lower pitch than mp3 and flac files.

I used one of your test files and converted it to 28 khz with ffmpeg. Something possibly worth noting is it only allows the following values - 48000, 24000, 16000, 12000, 8000

MediaInfo reported that it had a sample rate of 24 khz, as previously discussed mediaInfo has an issue with Opus files.

When checking with ffprobe the file was still 48 khz.

Musicbee also reports it as 48 khz.

I found this post which explains the reason that happened - ffmpeg-not-honoring-sample-rate-in-opus-output

So at this stage I think this is just an issue with Opus codec and possibly how the Bass library handles it. Particularly with the OpusHead value mentioned in the post I linked. If a player is following the standard it will always decode them at 48 khz.

I cant do any sound tests for a few days but maybe try and encode a 48 khz mp3 to opus and try that. That should make the value in the OpusHead match the sample rate of the file. I expect that will not have any pitch issues.

tubescreamer

  • Jr. Member
  • **
  • Posts: 92
Sound as if this has nothing to do with my bug report.
Can you please write a separate bug report?
This here is an old issue that was fixed and now came back in 3.6.
You can't play back music with different sample rates.
Not 100% sure, whether this was a generic issue or only limited to ASIO drivers.
But after all it sounds a little bit different than your case. Thanks.

BoringName

  • Sr. Member
  • ****
  • Posts: 916
Sound as if this has nothing to do with my bug report.

No it doesn't. Hopefully one of the mods can move those 2 posts into the UPNP thread.

For your issue. Is anything in this thread relevant?
https://getmusicbee.com/forum/index.php?topic=25401.0

Maybe you ticked crossfading in your 3.6 setup and restoring the backup set it back to no crossfading?

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34974
I cant reproduce any issues but you could try this version
https://getmusicbee.com/patches/Test/MusicBee.zip

If it works, I am not promising to include it in future versions as the change fixed issues for others

Tbdr

  • Newbie
  • *
  • Posts: 3
Hi,

I confirm having the same bug with audio output set to ASIO.

Frequency changes cause issues.


Here are some more details on what works and what not in my case :

After playing a 16 bits - 44.1hz track, it is impossible to play
- a 24 bits / 88.2 Hz
- a 24 bits / 96 Hz
- a 24 bits / 192 Hz
but it is OK for a
- 24 bits / 48 Hz

After playing  a 24 bits / 96 Hhz only going to 24 / 88.2 Hz works

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34974


Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34974
I'm currently using 3.6.9202
I cant reproduce any issues but you could try this version
https://getmusicbee.com/patches/Test/MusicBee.zip

If it works, I am not promising to include it in future versions as the change fixed issues for others

Tbdr

  • Newbie
  • *
  • Posts: 3