audiosilencedet.h 652 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __AUDIOSILENCEDET_H__
  2. #define __AUDIOSILENCEDET_H__
  3. #pragma once
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. #include "audiostream.h"
  8. typedef struct audiosilencedet_t {
  9. audiostream_t base;
  10. int opt;
  11. int clock;
  12. int ptime;
  13. int psize;
  14. void *det_read;
  15. void *det_write;
  16. }audiosilencedet_t;
  17. #define AUDIO_SILENCEDET_OPT_APPLY_READ 1
  18. #define AUDIO_SILENCEDET_OPT_APPLY_WRITE 2
  19. apr_status_t audiosilencedet_create(apr_pool_t *pool, audioengine_t *engine, int clock, int ptime, int opt, audiosilencedet_t **p_det);
  20. void audiosilencedet_destroy(audiosilencedet_t *det);
  21. #ifdef __cplusplus
  22. } // extern "C" {
  23. #endif
  24. #endif //__AUDIOSILENCEDET_H__