#include <audio.h>
Inheritance diagram for ost::AudioTone::

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 |
These tone samples can be either single or dual tones, and are created as linear samples of a specified sample rate.
|
||||||||||||||||||||
|
|
|
|
Fill the current sample frame with more tone data.
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.10 written by Dimitri van Heesch,
© 1997-2001