audiomixer.h 633 B

12345678910111213141516171819202122232425262728
  1. #ifndef __AUDIOMIXER_H__
  2. #define __AUDIOMIXER_H__
  3. #pragma once
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. #include <apr_tables.h>
  8. #include "audiostream.h"
  9. typedef struct audiomixer_t {
  10. audiostream_t base;
  11. apr_array_header_t *arr_stream;
  12. }audiomixer_t;
  13. apr_status_t audiomixer_create(apr_pool_t *pool, audioengine_t *engine, audiomixer_t **p_mixer);
  14. void audiomixer_destroy(audiomixer_t *mixer);
  15. apr_status_t audiomixer_add_stream(audiomixer_t *mixer, audiostream_t *stream);
  16. apr_status_t audiomixer_remove_stream(audiomixer_t *mixer, audiostream_t *stream);
  17. #ifdef __cplusplus
  18. } // extern "C" {
  19. #endif
  20. #endif //__AUDIOMIXER_H__