FaceAccess/Record/SpeexDsp.h
2024-09-04 17:57:23 +08:00

19 lines
378 B
C++

#ifndef __SPEEXDSP_H__
#define __SPEEXDSP_H__
#include <cstdint>
typedef struct SpeexEchoState_ SpeexEchoState;
typedef struct SpeexPreprocessState_ SpeexPreprocessState;
class SpeexDsp {
public:
void preprocess(int16_t *pcm);
void reset();
private:
SpeexEchoState *m_state = nullptr;
SpeexPreprocessState *m_preprocessState=nullptr;
};
#endif // __SPEEXDSP_H__