ccAudio
|
MFTones is used to generate a series of mf audio data from a "telephone" number passed as an ASCII string. More...
#include <audio2.h>
Public Member Functions | |
MFTones (const char *digits, Level level, timeout_t duration=20, timeout_t interdigit=60) | |
Generate a mf dialer for a specified dialing string. | |
~MFTones () | |
Linear | getFrame (void) |
bool | isComplete (void) |
Protected Attributes | |
unsigned | remaining |
unsigned | mfframes |
timeout_t | frametime |
const char * | digits |
Level | level |
bool | complete |
bool | kflag |
MFTones is used to generate a series of mf audio data from a "telephone" number passed as an ASCII string.
Each time getFrame() is called, the next audio frame of dtmf audio will be created and pulled.
ost::MFTones::MFTones | ( | const char * | digits, |
Level | level, | ||
timeout_t | duration = 20 , |
||
timeout_t | interdigit = 60 |
||
) |
Generate a mf dialer for a specified dialing string.
digits | to generate tone dialing for. |
level | for mf. |
duration | timing for generated audio. |
interdigit | timing, should be multiple of frame. |
ost::MFTones::~MFTones | ( | ) |
Linear ost::MFTones::getFrame | ( | void | ) | [virtual] |
Reimplemented from ost::AudioTone.
bool ost::MFTones::isComplete | ( | void | ) | [virtual] |
Reimplemented from ost::AudioTone.
bool ost::MFTones::complete [protected] |
const char* ost::MFTones::digits [protected] |
timeout_t ost::MFTones::frametime [protected] |
bool ost::MFTones::kflag [protected] |
Level ost::MFTones::level [protected] |
unsigned ost::MFTones::mfframes [protected] |
unsigned ost::MFTones::remaining [protected] |