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

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

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

ost::AudioTone::AudioTone unsigned   size,
unsigned   f1 = 0,
unsigned   f2 = 0,
unsigned   rate = 8000
 


Member Function Documentation

void ost::AudioTone::Fill unsigned   max = 0
 

Fill the current sample frame with more tone data.

void ost::AudioTone::setFreq unsigned   f1,
unsigned   f2 = 0
 


Member Data Documentation

double ost::AudioTone::fa1 [protected]
 

double ost::AudioTone::fa2 [protected]
 

double ost::AudioTone::p1 [protected]
 

double ost::AudioTone::p2 [protected]
 

double ost::AudioTone::v1 [protected]
 

double ost::AudioTone::v2 [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