123456789101112131415161718192021222324252627282930313233343536373839 |
- #ifndef __AUDIODTMFBRIDGE_H__
- #define __AUDIODTMFBRIDGE_H__
- #pragma once
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include "audiodriver.h"
- #include "audiortp.h"
- #define DTMF_BRIDGE_MODE_NONE 0
- #define DTMF_BRIDGE_MODE_HALF 1
- #define DTMF_BRIDGE_MODE_DUPLEX 3
- typedef struct audiodtmfbridge_t audiodtmfbridge_t;
- struct audiodtmfbridge_t {
- audiodriver_t base;
- audiortp_t *left_leg_stream;
- audiortp_t *right_leg_stream;
- int mode;
- };
- apr_status_t audiodtmfbridge_create(apr_pool_t *pool,
- audioengine_t *engine,
- audiortp_t *left_stream,
- audiortp_t *right_stream,
- int mode, // DTMF_BRIDGE_MODE_xxx
- audiodtmfbridge_t **p_bridge);
- void audiodtmfbridge_destroy(audiodtmfbridge_t *bridge);
- #ifdef __cplusplus
- } // extern "C" {
- #endif
- #endif //__AUDIODTMFBRIDGE_H__
|