audioaec.h 610 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef __AUDIOAEC_H__
  2. #define __AUDIOAEC_H__
  3. #pragma once
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. #include "audiostream.h"
  8. typedef struct audioaec_t {
  9. audiostream_t base;
  10. void *state;
  11. int opt;
  12. int clock;
  13. int ptime;
  14. int psize;
  15. audioframe_t tmp_capture_frame;
  16. }audioaec_t;
  17. #define AUDIO_AEC_OPT_READ_AS_CAPTURE 1
  18. #define AUDIO_AEC_OPT_READ_AS_PLAYBACK 2
  19. apr_status_t audioaec_create(apr_pool_t *pool, audioengine_t *engine, int clock, int ptime, int opt, int latency, audioaec_t **p_aec);
  20. void audioaec_destroy(audioaec_t *aec);
  21. #ifdef __cplusplus
  22. } // extern "C" {
  23. #endif
  24. #endif //__AUDIOAEC_H__