libvstfdetect/vstf_lite_detector.cc
/// Reset all internal states and data
Reset all internal states and data
Reset all internal states and data
void VstfDetector::Reset() {
  vstf_detector_internals *internals = (vstf_detector_internals *)_privData;
  internals->desired_samples.resize(0);
  internals->detected = false;
  if (internals->use_aec == true) {
    internals->pEchoCanceller->Reset();
  }
  if (internals->use_denoiser == true) {
    internals->pDenoiser->Reset();
  }
  if (internals->use_vad == true) {
    internals->pVadDetector->Reset();
  }
}
void VstfDetector :: Reset ( ) { vstf_detector_internals * internals = ( vstf_detector_internals * ) _privData ; internals -> desired_samples . resize ( 0 ) ; internals -> detected = false ; if ( internals -> use_aec == true ) { internals -> pEchoCanceller -> Reset ( ) ; } if ( internals -> use_denoiser == true ) { internals -> pDenoiser -> Reset ( ) ; } if ( internals -> use_vad == true ) { internals -> pVadDetector -> Reset ( ) ; } }
Reset all internal states and data
Reset all internal states and data