Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

ost::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 ost::AudioCopy::

ost::AudioSample List of all members.

Public Methods

 AudioCopy (unsigned frame, audioencoding_t encoding=PCM16_AUDIO_ENCODING, unsigned rate=8000)
bool Copy (void)
bool isEmpty (void)

Protected Methods

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

ost::AudioCopy::AudioCopy unsigned   frame,
audioencoding_t   encoding = PCM16_AUDIO_ENCODING,
unsigned   rate = 8000
 


Member Function Documentation

bool ost::AudioCopy::Copy void  
 

virtual AudioSample* ost::AudioCopy::Fill void   [protected, pure virtual]
 

bool ost::AudioCopy::isEmpty void   [inline]
 


Member Data Documentation

unsigned ost::AudioCopy::left [protected]
 

unsigned char* ost::AudioCopy::next [protected]
 


The documentation for this class was generated from the following file:
Generated at Sat Nov 3 09:46:02 2001 for ccAudio by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001