Audio file length

BlitzMax Forums/BlitzMax Programming/Audio file length

For 16 bit stereo waves the following should give time in seconds:

time#=float(length/4)/hertz

and for 16 bit mono:

time#=float(length/2)/hertz