#ifndef __AUDIOSILENCEDET_H__ #define __AUDIOSILENCEDET_H__ #pragma once #ifdef __cplusplus extern "C" { #endif #include "audiostream.h" typedef struct audiosilencedet_t { audiostream_t base; int opt; int clock; int ptime; int psize; void *det_read; void *det_write; }audiosilencedet_t; #define AUDIO_SILENCEDET_OPT_APPLY_READ 1 #define AUDIO_SILENCEDET_OPT_APPLY_WRITE 2 apr_status_t audiosilencedet_create(apr_pool_t *pool, audioengine_t *engine, int clock, int ptime, int opt, audiosilencedet_t **p_det); void audiosilencedet_destroy(audiosilencedet_t *det); #ifdef __cplusplus } // extern "C" { #endif #endif //__AUDIOSILENCEDET_H__