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

bool AudioCopy::copy ( void   ) 

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

bool AudioCopy::isEmpty ( void   )  [inline]


Member Data Documentation

unsigned AudioCopy::left [protected]

unsigned char* AudioCopy::next [protected]


The documentation for this class was generated from the following file:
Generated on Mon Oct 23 07:34:09 2006 for ccAudio by  doxygen 1.4.7