123456789101112131415161718192021222324252627282930313233 |
- #ifndef __AUDIOAEC_H__
- #define __AUDIOAEC_H__
- #pragma once
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include "audiostream.h"
- typedef struct audioaec_t {
- audiostream_t base;
- void *state;
- int opt;
- int clock;
- int ptime;
- int psize;
- audioframe_t tmp_capture_frame;
- }audioaec_t;
- #define AUDIO_AEC_OPT_READ_AS_CAPTURE 1
- #define AUDIO_AEC_OPT_READ_AS_PLAYBACK 2
- apr_status_t audioaec_create(apr_pool_t *pool, audioengine_t *engine, int clock, int ptime, int opt, int latency, audioaec_t **p_aec);
- void audioaec_destroy(audioaec_t *aec);
- #ifdef __cplusplus
- } // extern "C" {
- #endif
- #endif //__AUDIOAEC_H__
|