diff --git a/src/AudioTools/AudioCodecs/CodecWAV.h b/src/AudioTools/AudioCodecs/CodecWAV.h index 31eeb7873..b7e3aa427 100644 --- a/src/AudioTools/AudioCodecs/CodecWAV.h +++ b/src/AudioTools/AudioCodecs/CodecWAV.h @@ -118,6 +118,9 @@ class WAVHeader { void clear() { data_pos = 0; WAVAudioInfo empty; + empty.sample_rate = 0; + empty.channels = 0; + empty.bits_per_sample = 0; headerInfo = empty; buffer.setClearWithZero(true); buffer.reset();