3 ms·
Assuming a typical audio encoding, each time around the loop the new sample value is added (arithmetic add) to the previous value, not bitwise OR. The mean valu
by robotresearcher 6y ago
Assuming a typical audio encoding, each time around the loop the new sample value is added (arithmetic add) to the previous value, not bitwise OR. The mean value of a sample is zero, so you can do this forever. (Idealized. In practice you actively normalize to avoid overflow/clipping).