2008-03-20 00:51:47 +00:00
|
|
|
|
|
|
|
#ifndef __GST_RTP_DTMF_COMMON_H__
|
|
|
|
#define __GST_RTP_DTMF_COMMON_H__
|
|
|
|
|
|
|
|
|
2009-02-20 22:37:43 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
unsigned event:8; /* Current DTMF event */
|
2008-03-20 00:51:47 +00:00
|
|
|
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
2009-02-20 22:37:43 +00:00
|
|
|
unsigned volume:6; /* power level of the tone, in dBm0 */
|
|
|
|
unsigned r:1; /* Reserved-bit */
|
|
|
|
unsigned e:1; /* End-bit */
|
2008-03-20 00:51:47 +00:00
|
|
|
#elif G_BYTE_ORDER == G_BIG_ENDIAN
|
2009-02-20 22:37:43 +00:00
|
|
|
unsigned e:1; /* End-bit */
|
|
|
|
unsigned r:1; /* Reserved-bit */
|
|
|
|
unsigned volume:6; /* power level of the tone, in dBm0 */
|
2008-03-20 00:51:47 +00:00
|
|
|
#else
|
|
|
|
#error "G_BYTE_ORDER should be big or little endian."
|
|
|
|
#endif
|
2009-02-20 22:37:43 +00:00
|
|
|
unsigned duration:16; /* Duration of digit, in timestamp units */
|
2008-03-20 00:51:47 +00:00
|
|
|
} GstRTPDTMFPayload;
|
|
|
|
|
|
|
|
#endif /* __GST_RTP_DTMF_COMMON_H__ */
|