3 ms·
Detecting silence by searching for 0 isn't the best idea, even without endianness bugs. Silence is when the value doesn't change, no matter what it is. Noise i
by ajuc 5y ago
Detecting silence by searching for 0 isn't the best idea, even without endianness bugs.
Silence is when the value doesn't change, no matter what it is. Noise is when the values change, the more they change - the louder the sound.
So a wav file filled with "ffff" is just as silent as one filled with "0000".
And a wav file filled with repeated "00003333" is louder than one filled with repeated "eeeeffff".