Hey all!
I currently have a small project for which I use ManagedBass. Actually it's pretty much done, only I have the problem that the sample rate of the audio files should always be at 44100Hz to play correctly, but most of my audio files are 48000Hz, which makes the songs play at a lower pitch and generally too slow. When the sample rate is below 44100Hz, it's the other way around (higher pitch, faster playback speed). I can't figure out why this is.
Here is a trimmed down portion of my code:
Bass.Init();
int h = Bass.CreateStream(FileName, 0, 0, BassFlags.Decode);
if (h == 0) return false;
int tStream = BassFx.TempoCreate(h, BassFlags.FxFreeSource);
if (tStream == 0) return false;
Handle = tStream;
Bass.ChannelPlay(Handle);