Skip to content

Instantly share code, notes, and snippets.

Created December 27, 2013 17:24
Show Gist options
  • Save anonymous/8149904 to your computer and use it in GitHub Desktop.
Save anonymous/8149904 to your computer and use it in GitHub Desktop.
test
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