• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GStreamer DTMF plugin
2  *
3  * This library is free software; you can redistribute it and/or
4  * modify it under the terms of the GNU Library General Public
5  * License as published by the Free Software Foundation; either
6  * version 2 of the License, or (at your option) any later version.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11  * Library General Public License for more details.
12  *
13  * You should have received a copy of the GNU Library General Public
14  * License along with this library; if not, write to the
15  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
16  * Boston, MA 02110-1301, USA.
17  */
18 
19 #ifndef __GST_RTP_DTMF_COMMON_H__
20 #define __GST_RTP_DTMF_COMMON_H__
21 
22 #include <gst/math-compat.h>
23 
24 #define MIN_INTER_DIGIT_INTERVAL 100     /* ms */
25 #define MIN_PULSE_DURATION       250     /* ms */
26 
27 #define MIN_VOLUME               0
28 #define MAX_VOLUME               36
29 
30 #define MIN_EVENT                0
31 #define MAX_EVENT                15
32 #define MIN_EVENT_STRING         "0"
33 #define MAX_EVENT_STRING         "15"
34 
35 typedef struct
36 {
37   guint8 event;             /* Current DTMF event */
38   guint8 volume;            /* power level of the tone, in dBm0 */
39   guint16 duration;         /* Duration of digit, in timestamp units */
40 } GstRTPDTMFPayload;
41 
42 #endif /* __GST_RTP_DTMF_COMMON_H__ */
43