Sample length formula


#1

Hello,

math problem...

if the sample rate is 48000 and the bit depth is 16, how can I caculate the time length in seconds of a stereo file of 110.34Kb?

I know the length of the file opening it with audacity: 0.575 seconds, but using this sheet I get 0.383 seconds:
http://www.audiomountain.com/tech/audio-file-size.html

I do 110.34 / 288 -> file size / 1s size

(and...is it possible to know the file size within the patch? I think that now you can figure out what I wanna get :smiley: )

Thank-you!


#2

110.34 for a stereo track
110.34/2 for a mono track, i.e. 55.17Kb
From the link you give, read at PCM file 16 bit, 48kHz: 96Kb/s
So, length = 55.17/96 = roughly 0.575s