AudioTone Class Reference

The tone class is used to construct or generate a tone sample in memory.generate audio sample in memory. More...

#include <audio.h>

Inheritance diagram for AudioTone:

AudioSample Audio List of all members.

Public Member Functions

 AudioTone (unsigned size, unsigned f1=0, unsigned f2=0, unsigned rate=8000)
void fill (unsigned max=0)
 Fill the current sample frame with more tone data.
void setFreq (unsigned f1, unsigned f2=0)

Protected Attributes

double p1
double p2
double v1
double v2
double fa1
double fa2

Detailed Description

The tone class is used to construct or generate a tone sample in memory.generate audio sample in memory.

These tone samples can be either single or dual tones, and are created as linear samples of a specified sample rate.

Author:
David Sugar <dyfet@ostel.com>


Constructor & Destructor Documentation

AudioTone::AudioTone ( unsigned  size,
unsigned  f1 = 0,
unsigned  f2 = 0,
unsigned  rate = 8000 
)


Member Function Documentation

void AudioTone::fill ( unsigned  max = 0  ) 

Fill the current sample frame with more tone data.

void AudioTone::setFreq ( unsigned  f1,
unsigned  f2 = 0 
)


Member Data Documentation

double AudioTone::fa1 [protected]

double AudioTone::fa2 [protected]

double AudioTone::p1 [protected]

double AudioTone::p2 [protected]

double AudioTone::v1 [protected]

double AudioTone::v2 [protected]


The documentation for this class was generated from the following file:
Generated on Mon Oct 23 02:30:49 2006 for ccAudio by  doxygen 1.4.7