WebrtcWrapper.h 698 B

123456789101112131415161718192021222324
  1. #ifndef _WEBRTC_WRAPPER_H__
  2. #define _WEBRTC_WRAPPER_H_
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #ifdef AEC_DELAY
  7. //audio denoise.
  8. extern void *GetInstance();
  9. extern void ReleaseInstance(void *handle);
  10. extern void SetFrameParam(void *handle, int rate, int step, int chans);
  11. extern void FrameProcess(void *handle, short *data, int len);
  12. //audio echo cancellation.
  13. extern void *WebRtcAecInit(void);
  14. extern void WebRtcAecRelease(void *AecHandle);
  15. extern void SetWebRtcAecParam(void *AecHandle, int sampFreq, int scSampFreq, void *priv);
  16. extern void WebRtcAecFrameProcess(void *AecHandle, short *far_frame, short *near_frame, short *out_frame, int delay_ms);
  17. #endif
  18. #ifdef __cplusplus
  19. };
  20. #endif
  21. #endif