#include <dtmf.h>
Inheritance diagram for PDTMFEncoder:
Public Types | |
enum | { DefaultToneLen = 100 } |
Public Member Functions | |
PDTMFEncoder (const char *dtmf=NULL, unsigned len=DefaultToneLen) | |
void | AddTone (char ch, unsigned len=DefaultToneLen) |
void | AddTone (const PString &str, unsigned len=DefaultToneLen) |
void | AddTone (double freq1, double freq2=0, unsigned len=DefaultToneLen) |
void | GenerateRingBackTone () |
void | GenerateDialTone () |
void | GenerateBusyTone () |
char | DtmfChar (PINDEX i) |
Static Protected Member Functions | |
static PMutex & | GetMutex () |
static void | MakeSineTable () |
static double | sine (unsigned int ptr) |
Static Protected Attributes | |
static BOOL | sineTabInit |
static double | sinetab [1<< 11] |
|
|
|
Create PCM data for the specified DTMF sequence |
|
Add the PCM data for the specified dual-frequency tone to the buffer freq2 can be zero, which will generate a single frequency tone |
|
Add the PCM data for the specified tone sequence to the buffer |
|
Add the PCM data for the specified tone to the buffer |
|
Convenience function to get the dtmf symbol for index i, where i is in the range of 0 to 15 |
|
Generate PCM data for a single cadence of the US standard busy tone of 480/620hz for 1/2 second, 1/2 second of silence |
|
Generate PCM data for 1 second of US standard dial tone of 350/440hz |
|
Generate PCM data for a single cadence of the US standard ring tone of 440/480hz for 2 seconds, followed by 5 seconds of silence |
|
|
|
|
|
|
|
|
|
|