diff --git a/cpp/StftPitchShift/Vocoder.h b/cpp/StftPitchShift/Vocoder.h index b0e2871..ebe580b 100755 --- a/cpp/StftPitchShift/Vocoder.h +++ b/cpp/StftPitchShift/Vocoder.h @@ -48,7 +48,8 @@ namespace stftpitchshift void reset() { - // zero decode phase buffer according to #45 + // zero both phase buffers according to #45 + std::fill(encode_phase_buffer.begin(), encode_phase_buffer.end(), 0); std::fill(decode_phase_buffer.begin(), decode_phase_buffer.end(), 0); }