Section: C Library Functions (3)Updated: 1 May 2009Local indexUp
NAME
ost::TelTone - An object that is used to sequence and extract telephony tones based on a telephony tone descriptor retrieved from the parsed international telephony tone database.
TelTone (tonekey_t *key, Levellevel, timeout_tframe=20)
Create a tone sequencing object for a specific telephony tone key id. ~TelTone ()
LineargetFrame (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_tframing
Levellevel
bool complete
Detailed Description
An object that is used to sequence and extract telephony tones based on a telephony tone descriptor retrieved from the parsed international telephony tone database.
Author:
David Sugar <dyfet@ostel.com> telephony tone sequencing object.