19 lines
378 B
C++
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__
|