12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #ifndef __AUDIODSP_H__
- #define __AUDIODSP_H__
- #pragma once
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include "audiostream.h"
- #define AUDIO_DSP_NONE 0x00
- #define AUDIO_DSP_AGC 0x01
- #define AUDIO_DSP_DENOISE 0x02
- typedef struct audiodsp_t audiodsp_t;
- struct audiodsp_t
- {
- audiostream_t base;
- int clock;
- void * read_preprocess;
- void * write_preprocess;
- unsigned read_option;
- unsigned write_option;
- int frame_samples;
- audioframe_t tmp_read_frame;
- audioframe_t tmp_write_frame;
- };
- apr_status_t audiodsp_create(apr_pool_t *pool,
- audioengine_t *engine,
- int read_opt,
- int write_opt,
- int clock,
- audiodsp_t **p_dsp);
- void audiodsp_destroy(audiodsp_t *dsp);
- #ifdef __cplusplus
- } // extern "C" {
- #endif
- #endif //__AUDIODSP_H__
|