This project has moved and is read-only. For the latest updates, please go here.

where is Mp3Frame::FrameLengthMs()

Sep 18, 2012 at 7:52 AM


I had one project, which used this method. I don't have clue which version of NAudio was used in this project.

But when I tried to check the source code of this method, I couldn't find this method from NAudio 1.5 release. 


Could anyone let me know which version of release has this method? Why it is removed from current release?

Thanks in advance!

Sep 18, 2012 at 9:43 AM

no idea when this was removed. I have no memory of it. You could always check the source control history. It's easily calculated using SampleCount and SampleRate


Sep 18, 2012 at 11:32 AM

Hi Mark,

Sorry for rockie question. I just started audio programming. Don't really know the concepts yet. Could you please tell me how to use SampleCount and SampleRate to calculate to get the same value as FrameLengthMs() returned.


Sep 18, 2012 at 11:34 AM

var milliseconds = (SampleCount * 1000.0) / SampleRate

Sep 18, 2012 at 1:51 PM

Works. Thanks again!