sipxmedialib  Version 3.3
dtmflib.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2006-2007 SIPez LLC.
3 // Licensed to SIPfoundry under a Contributor Agreement.
4 //
5 // Copyright (C) 2004-2007 SIPfoundry Inc.
6 // Licensed by SIPfoundry under the LGPL license.
7 //
8 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
9 // Licensed to SIPfoundry under a Contributor Agreement.
10 //
11 // $$
13 
14 
15 #ifndef _INCLUDED_DTMFLIB_H /* [ */
16 #define _INCLUDED_DTMFLIB_H
17 
18 #include "mp/MpTypes.h"
19 #include "os/OsStatus.h"
20 
21 #define DTMF_TONES_BASE 512
22 
23 typedef enum {
35 } toneID;
36 
37 typedef struct __MpToneGen_tag *MpToneGenPtr;
38 
39 extern void MpToneGen_startTone(MpToneGenPtr p, int toneID);
40 extern void MpToneGen_stopTone(MpToneGenPtr p);
41 extern OsStatus MpToneGen_getNextBuff(MpToneGenPtr thisobj, MpAudioSample *b, int N);
42 extern void MpToneGen_delete(MpToneGenPtr p);
43 extern MpToneGenPtr MpToneGen_MpToneGen(int samprate, const char* toneLocale=NULL);
44 
45 #endif /* _INCLUDED_DTMFLIB_H ] */
Definition: dtmflib.h:28
toneID
Definition: dtmflib.h:23
Definition: dtmflib.h:31
Definition: dtmflib.h:26
Definition: dtmflib.cpp:56
Definition: dtmflib.h:25
Definition: dtmflib.h:33
int16_t MpAudioSample
Definition: MpTypes.h:44
Definition: dtmflib.h:30
Definition: dtmflib.h:32
OsStatus MpToneGen_getNextBuff(MpToneGenPtr thisobj, MpAudioSample *b, int N)
Definition: dtmflib.cpp:247
Definition: dtmflib.h:27
void MpToneGen_delete(MpToneGenPtr p)
Definition: dtmflib.cpp:574
#define DTMF_TONES_BASE
Definition: dtmflib.h:21
Definition: dtmflib.h:24
void MpToneGen_stopTone(MpToneGenPtr p)
Definition: dtmflib.cpp:161
struct __MpToneGen_tag * MpToneGenPtr
Definition: dtmflib.h:37
MpToneGenPtr MpToneGen_MpToneGen(int samprate, const char *toneLocale=NULL)
Definition: dtmflib.cpp:580
Definition: dtmflib.h:34
void MpToneGen_startTone(MpToneGenPtr p, int toneID)
Definition: dtmflib.cpp:118
Definition: dtmflib.h:29