MP3AudioFormat: number of samples wrong


I switched between the WindowsMediaFormat and the Mp3AudioFormat and I got these results:

MP3AudioFormat::lengthInSamples: 4659840
WindowsMediaAudioFormat::lengthInSamples: 2330496
Oups, double the number of frames… This could be due to the fact that this mp3 is @ 24khz samplerate…

MP3AudioFormat::lengthInSamples: 7188480
WindowsMediaAudioFormat::lengthInSamples: 7103187
difference: almost 2 seconds for a 2:42 file

I thought I’d note this as Jules seems to want to improve his mp3 decoder with some bad examples :slight_smile:


  • bram