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

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 List of all members.

Public Methods

 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. More...

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 at Tue Nov 20 16:55:21 2001 for ccAudio by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001