#include "SpeexDsp.h" #include #include void SpeexDsp::reset() { if (m_state != nullptr) { speex_echo_state_reset(m_state); } } void SpeexDsp::preprocess(int16_t *pcm) { if (m_preprocessState != nullptr) { speex_preprocess_run(m_preprocessState, pcm); } }