audiodsp.h 774 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef __AUDIODSP_H__
  2. #define __AUDIODSP_H__
  3. #pragma once
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. #include "audiostream.h"
  8. #define AUDIO_DSP_NONE 0x00
  9. #define AUDIO_DSP_AGC 0x01
  10. #define AUDIO_DSP_DENOISE 0x02
  11. typedef struct audiodsp_t audiodsp_t;
  12. struct audiodsp_t
  13. {
  14. audiostream_t base;
  15. int clock;
  16. void * read_preprocess;
  17. void * write_preprocess;
  18. unsigned read_option;
  19. unsigned write_option;
  20. int frame_samples;
  21. audioframe_t tmp_read_frame;
  22. audioframe_t tmp_write_frame;
  23. };
  24. apr_status_t audiodsp_create(apr_pool_t *pool,
  25. audioengine_t *engine,
  26. int read_opt,
  27. int write_opt,
  28. int clock,
  29. audiodsp_t **p_dsp);
  30. void audiodsp_destroy(audiodsp_t *dsp);
  31. #ifdef __cplusplus
  32. } // extern "C" {
  33. #endif
  34. #endif //__AUDIODSP_H__