This project has moved. For the latest updates, please go here.

MP3 FrameLength?

May 15, 2011 at 12:19 PM

  \naudio-72813\NAudio\FileFormats\Mp3\Mp3Frame.cs   Function: IsValidHeader

frame.FrameLength = (coefficient * frame.BitRate / frame.SampleRate + nPadding) * 4;

frame.FrameLength = coefficient * frame.BitRate / frame.SampleRate + nPadding * 4;

 

Which is correct?

Coordinator
May 15, 2011 at 4:31 PM

as far as I know, the calculation in the latest source code is correct. It is different for Layer 1 files