#include <audio2.h>
Inheritance diagram for ost::TelTone:
Public Types | |
typedef ost::TelTone::_tonedef | tonedef_t |
typedef ost::TelTone::_tonekey | tonekey_t |
Public Member Functions | |
TelTone (tonekey_t *key, Level level, timeout_t frame=20) | |
Create a tone sequencing object for a specific telephony tone key id. | |
~TelTone () | |
Linear | getFrame (void) |
Generate and retrieve one frame of linear audio data for the telephony tone sequence being created. | |
bool | isComplete (void) |
Check if all audio frames for this tone has been created. | |
Static Public Member Functions | |
static bool | load (const char *pathname, const char *locale=NULL) |
Load a teltones database file into memory. | |
static tonekey_t * | find (const char *tone, const char *locale=NULL) |
find an entry in the teltones database. | |
Protected Attributes | |
tonekey_t * | tone |
tonedef_t * | def |
unsigned | remaining |
unsigned | silent |
unsigned | count |
timeout_t | framing |
Level | level |
bool | complete |
Classes | |
struct | _tonedef |
struct | _tonekey |
|
|
|
|
|
Create a tone sequencing object for a specific telephony tone key id.
|
|
|
|
find an entry in the teltones database.
|
|
Generate and retrieve one frame of linear audio data for the telephony tone sequence being created.
Reimplemented from ost::AudioTone. |
|
Check if all audio frames for this tone has been created. Some telephony tones, such as dialtone, may be infinite...
Reimplemented from ost::AudioTone. |
|
Load a teltones database file into memory.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|