Skip to content

Instantly share code, notes, and snippets.

@zeffii
Forked from anonymous/size_calc.py
Created December 27, 2013 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeffii/8149906 to your computer and use it in GitHub Desktop.
Save zeffii/8149906 to your computer and use it in GitHub Desktop.
def calc_size(time, sampleRate, bits, channels):
return (time * sampleRate * bits * channels) / 8
print(calc_size(30, 44100, 16, 2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment