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

where is Mp3Frame::FrameLengthMs()

Sep 18, 2012 at 6:52 AM

Hi,

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!

Coordinator
Sep 18, 2012 at 8: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

Mark

Sep 18, 2012 at 10: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.

Thanks!

Coordinator
Sep 18, 2012 at 10:34 AM

var milliseconds = (SampleCount * 1000.0) / SampleRate

Sep 18, 2012 at 12:51 PM

Works. Thanks again!