#include <audio.h>
Inheritance diagram for AudioCopy:
Public Member Functions | |
AudioCopy (unsigned frame, Encoding encoding=pcm16Mono, unsigned rate=8000) | |
virtual | ~AudioCopy () |
bool | copy (void) |
bool | isEmpty (void) |
Protected Member Functions | |
virtual AudioSample * | fill (void)=0 |
Protected Attributes | |
unsigned char * | next |
unsigned | left |
Essentially it fills the current sample buffer from another AudioSample object and requests a new object thru a virtual every time it empties. This is used in dtmf dialing, for example, to fill in the next digit tone.
AudioCopy::AudioCopy | ( | unsigned | frame, | |
Encoding | encoding = pcm16Mono , |
|||
unsigned | rate = 8000 | |||
) |
virtual AudioCopy::~AudioCopy | ( | ) | [inline, virtual] |
bool AudioCopy::copy | ( | void | ) |
virtual AudioSample* AudioCopy::fill | ( | void | ) | [protected, pure virtual] |
bool AudioCopy::isEmpty | ( | void | ) | [inline] |
unsigned AudioCopy::left [protected] |
unsigned char* AudioCopy::next [protected] |