Poster of Linux kernelThe best gift for a Linux geek
ost::DTMFTones

ost::DTMFTones

Section: C Library Functions (3) Updated: 1 May 2009
Local index Up
 

NAME

ost::DTMFTones - DTMFTones is used to generate a series of dtmf audio data from a 'telephone' number passed as an ASCII string.

 

SYNOPSIS


#include <audio2.h>

Inherits ost::AudioTone.

 

Public Member Functions


DTMFTones (const char *digits, Level level, timeout_t duration=20, timeout_t interdigit=60)
Generate a dtmf dialer for a specified dialing string.
~DTMFTones ()

Linear getFrame (void)

bool isComplete (void)
 

Protected Attributes


unsigned remaining

unsigned dtmfframes

timeout_t frametime

const char * digits

Level level

bool complete
 

Detailed Description

DTMFTones is used to generate a series of dtmf 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.

Author:

David Sugar <dyfet@ostel.com> Generate DTMF audio

 

Constructor & Destructor Documentation

 

ost::DTMFTones::DTMFTones (const char * digits, Level level, timeout_t duration = 20, timeout_t interdigit = 60)

Generate a dtmf dialer for a specified dialing string.

Parameters:

digits to generate tone dialing for.
level for dtmf.
duration timing for generated audio.
interdigit timing, should be multiple of frame.

 

ost::DTMFTones::~DTMFTones ()

 

Member Function Documentation

 

Linear ost::DTMFTones::getFrame (void) [virtual]

Reimplemented from ost::AudioTone.  

bool ost::DTMFTones::isComplete (void) [virtual]

Reimplemented from ost::AudioTone.  

Member Data Documentation

 

bool ost::DTMFTones::complete [protected]

 

const char* ost::DTMFTones::digits [protected]

 

unsigned ost::DTMFTones::dtmfframes [protected]

 

timeout_t ost::DTMFTones::frametime [protected]

 

Level ost::DTMFTones::level [protected]

 

unsigned ost::DTMFTones::remaining [protected]

 

Author

Generated automatically by Doxygen for ccAudio from the source code.


 

Index

NAME
SYNOPSIS
Public Member Functions
Protected Attributes
Detailed Description
Constructor & Destructor Documentation
ost::DTMFTones::DTMFTones (const char * digits, Level level, timeout_t duration = 20, timeout_t interdigit = 60)
ost::DTMFTones::~DTMFTones ()
Member Function Documentation
Linear ost::DTMFTones::getFrame (void) [virtual]
bool ost::DTMFTones::isComplete (void) [virtual]
Member Data Documentation
bool ost::DTMFTones::complete [protected]
const char* ost::DTMFTones::digits [protected]
unsigned ost::DTMFTones::dtmfframes [protected]
timeout_t ost::DTMFTones::frametime [protected]
Level ost::DTMFTones::level [protected]
unsigned ost::DTMFTones::remaining [protected]
Author

This document was created by man2html, using the manual pages.
Time: 21:51:50 GMT, April 16, 2011