Formatted dtmf_queue.
BUG= R=stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1398004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3982 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -11,30 +11,28 @@
|
||||
#ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_DTMF_QUEUE_H_
|
||||
#define WEBRTC_MODULES_RTP_RTCP_SOURCE_DTMF_QUEUE_H_
|
||||
|
||||
#include "typedefs.h"
|
||||
#include "rtp_rtcp_config.h"
|
||||
|
||||
#include "critical_section_wrapper.h"
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_rtcp_config.h"
|
||||
#include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
|
||||
#include "webrtc/typedefs.h"
|
||||
|
||||
namespace webrtc {
|
||||
class DTMFqueue
|
||||
{
|
||||
public:
|
||||
DTMFqueue();
|
||||
virtual ~DTMFqueue();
|
||||
class DTMFqueue {
|
||||
public:
|
||||
DTMFqueue();
|
||||
virtual ~DTMFqueue();
|
||||
|
||||
int32_t AddDTMF(uint8_t DTMFKey, uint16_t len, uint8_t level);
|
||||
int8_t NextDTMF(uint8_t* DTMFKey, uint16_t * len, uint8_t * level);
|
||||
bool PendingDTMF();
|
||||
void ResetDTMF();
|
||||
int32_t AddDTMF(uint8_t dtmf_key, uint16_t len, uint8_t level);
|
||||
int8_t NextDTMF(uint8_t* dtmf_key, uint16_t* len, uint8_t* level);
|
||||
bool PendingDTMF();
|
||||
void ResetDTMF();
|
||||
|
||||
private:
|
||||
CriticalSectionWrapper* _DTMFCritsect;
|
||||
uint8_t _nextEmptyIndex;
|
||||
uint8_t _DTMFKey[DTMF_OUTBAND_MAX];
|
||||
uint16_t _DTMFLen[DTMF_OUTBAND_MAX];
|
||||
uint8_t _DTMFLevel[DTMF_OUTBAND_MAX];
|
||||
private:
|
||||
CriticalSectionWrapper* dtmf_critsect_;
|
||||
uint8_t next_empty_index_;
|
||||
uint8_t dtmf_key_[DTMF_OUTBAND_MAX];
|
||||
uint16_t dtmf_length[DTMF_OUTBAND_MAX];
|
||||
uint8_t dtmf_level_[DTMF_OUTBAND_MAX];
|
||||
};
|
||||
} // namespace webrtc
|
||||
} // namespace webrtc
|
||||
|
||||
#endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_DTMF_QUEUE_H_
|
||||
#endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_DTMF_QUEUE_H_
|
||||
|
||||
Reference in New Issue
Block a user