Skip to content

Commit

Permalink
WAVHeader clear
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Nov 28, 2024
1 parent 292614c commit e07ac17
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/AudioTools/AudioCodecs/CodecWAV.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e07ac17

Please sign in to comment.