i want to convert 10.6 ms in to a sample buffer number
am i even explaining what i want to do properly?
Subz
ThanksC00kie wrote:Assume your sample frequency = 44100 Hz, so one second equals 44100 samples.
Divide by 1000 (convert seconds to ms) multiplied by 10.6 (the length you want) = 467.45 samples.
The other way round: 467 samples / 44.1 = 10.589 ms long.
To get the size in bytes of raw samples you have to multiply by 2 if it's 16bits or 4 if it's 32bits, and again by two if it's stereo. WAV files have some header overhead of variable size to add.
Hope that helps...
C00kie wrote:Nope, just read again. I've edited while you were responding...
Submit: News, Plugins, Hosts & Apps | Advertise @ KVR | Developer Account | About KVR / Contact Us | Privacy Statement
© KVR Audio, Inc. 2000-2026