SharpAudio
SharpAudio copied to clipboard
Increased audio playback speed while playing an MP3
When attempting to play this MP3 file, the playback speed appears to be much faster (it sounds nearly double) compared to using an audio player. Playing another MP3 worked fine.
To recreate the bug:
var engine = AudioEngine.CreateDefault();
var soundStream = new SoundStream(File.OpenRead("example.mp3"), engine);
soundStream.Volume = 50.0f;
soundStream.Play();
I have the same issue with several WAV files (the MP3s are played at the right speed).
I've tried with a custom volume and without, the issue is the same.
The metas of the files seems ok.
The only specificity I have is that I can play several SoundStreams at the same time (only two for now).
It seems that a single channel mp3 causes this problem.