SharpAudio icon indicating copy to clipboard operation
SharpAudio copied to clipboard

Increased audio playback speed while playing an MP3

Open markjamesm opened this issue 4 years ago • 2 comments

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();

markjamesm avatar Dec 28 '20 20:12 markjamesm

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).

AdrienTorris avatar Mar 15 '21 09:03 AdrienTorris

It seems that a single channel mp3 causes this problem.

DearVa avatar Jan 26 '23 15:01 DearVa