AudioCopy Class Reference

AudioCopy is used for certain kinds of stream join operations.fill an audio sample frame from another. More...

#include <audio.h>

Inheritance diagram for AudioCopy:

AudioSample Audio List of all members.

Public Member Functions

 AudioCopy (unsigned frame, Encoding encoding=pcm16Mono, unsigned rate=8000)
virtual ~AudioCopy ()
bool copy (void)
bool isEmpty (void)

Protected Member Functions

virtual AudioSamplefill (void)=0

Protected Attributes

unsigned char * next
unsigned left

Detailed Description

AudioCopy is used for certain kinds of stream join operations.fill an audio sample frame from another.

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.

Author:
David Sugar <dyfet@ostel.com>.


Constructor & Destructor Documentation

AudioCopy::AudioCopy ( unsigned  frame,
Encoding  encoding = pcm16Mono,
unsigned  rate = 8000 
)

virtual AudioCopy::~AudioCopy (  )  [inline, virtual]


Member Function Documentation

virtual AudioSample* AudioCopy::fill ( void   )  [protected, pure virtual]

bool AudioCopy::copy ( void   ) 

bool AudioCopy::isEmpty ( void   )  [inline]


Member Data Documentation

unsigned char* AudioCopy::next [protected]

unsigned AudioCopy::left [protected]


The documentation for this class was generated from the following file:
Generated on Mon Dec 25 13:32:22 2006 for ccAudio by  doxygen 1.5.1