sipxmedialib
Version 3.3
|
#include <mp/MpTypes.h>
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <mp/MpMisc.h>
#include <os/OsMutex.h>
#include <os/OsDefs.h>
#include "mp/dtmflib.h"
Classes | |
struct | __tone_tag |
struct | __tonepair_tag |
struct | __dtmf_tag |
struct | __MpToneGen_tag |
Macros | |
#define | PI 3.1415926 |
#define | PIt2 (2.0 * PI) |
#define | TwoPI PIt2 |
#define | DTMF_KEY_ROW_AMP (.3887F * .25F) |
#define | DTMF_KEY_COL_AMP (.5490F * .25F) |
#define | MAX_DTMFS 6 |
#define | DTMF_LOUD_BUSY_AMP (.95F) |
#define | AUDIO_A2D_BITS 14 |
#define | AUDIO_PAD_BITS 3 |
#define | AUDIO_A2D_MAX ((1<<(AUDIO_A2D_BITS-1))-1) /* i.e. 2047 */ |
#define | DTMF_KEY_AMPS DTMF_KEY_ROW_AMP, DTMF_KEY_COL_AMP |
#define | TEST_DRIVER |
Typedefs | |
typedef struct __tone_tag | tone |
typedef struct __tone_tag * | tonePtr |
typedef struct __tonepair_tag | tonePair |
typedef struct __tonepair_tag * | tonePairPtr |
typedef struct __dtmf_tag | dtmfPattern |
typedef struct __dtmf_tag * | dtmfPatternPtr |
typedef struct __MpToneGen_tag | MpToneGen |
Functions | |
void | MpToneGen_startTone (MpToneGenPtr p, int toneID) |
void | MpToneGen_stopTone (MpToneGenPtr p) |
OsStatus | MpToneGen_getNextBuff (MpToneGenPtr pThis, MpAudioSample *b, int N) |
void | MpToneGen_delete (MpToneGenPtr p) |
MpToneGenPtr | MpToneGen_MpToneGen (int samprate, const char *toneLocale) |
int | setSine (int Hz, int pct) |
#define PI 3.1415926 |
#define PIt2 (2.0 * PI) |
#define TwoPI PIt2 |
#define DTMF_KEY_ROW_AMP (.3887F * .25F) |
#define DTMF_KEY_COL_AMP (.5490F * .25F) |
#define MAX_DTMFS 6 |
#define DTMF_LOUD_BUSY_AMP (.95F) |
#define AUDIO_A2D_BITS 14 |
#define AUDIO_PAD_BITS 3 |
#define AUDIO_A2D_MAX ((1<<(AUDIO_A2D_BITS-1))-1) /* i.e. 2047 */ |
#define DTMF_KEY_AMPS DTMF_KEY_ROW_AMP, DTMF_KEY_COL_AMP |
#define TEST_DRIVER |
typedef struct __tone_tag tone |
typedef struct __tone_tag * tonePtr |
typedef struct __tonepair_tag tonePair |
typedef struct __tonepair_tag * tonePairPtr |
typedef struct __dtmf_tag dtmfPattern |
typedef struct __dtmf_tag * dtmfPatternPtr |
typedef struct __MpToneGen_tag MpToneGen |
void MpToneGen_startTone | ( | MpToneGenPtr | p, |
int | toneID | ||
) |
void MpToneGen_stopTone | ( | MpToneGenPtr | p | ) |
OsStatus MpToneGen_getNextBuff | ( | MpToneGenPtr | pThis, |
MpAudioSample * | b, | ||
int | N | ||
) |
void MpToneGen_delete | ( | MpToneGenPtr | p | ) |
MpToneGenPtr MpToneGen_MpToneGen | ( | int | samprate, |
const char * | toneLocale | ||
) |
int setSine | ( | int | Hz, |
int | pct | ||
) |