Licson Lee says to OwO
for(var i = 0; i < samplerate; i++){ for(var j = 0; j < channels; j++){ var offset = (i * channels + j) * sampleSize; } }