Given a WAV file, its file size and sample rate, is it possible to calculate the sample count?

Posted by Simon on Stack Overflow See other posts from Stack Overflow or by Simon
Published on 2010-04-14T13:30:56Z Indexed on 2010/04/14 13:33 UTC
Read the original article Hit count: 189

Filed under:

Our app needs to know the sample count of the audio files it loads. The library we're using can reliably determine the sample rate, but not the sample count. Is it possible for us to calculate the sample count from just the file size and sample rate?

© Stack Overflow or respective owner

Related posts about wav