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

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 |
These tone samples can be either single or dual tones, and are created as linear samples of a specified sample rate.
| AudioTone::AudioTone | ( | unsigned | size, | |
| unsigned | f1 = 0, |
|||
| unsigned | f2 = 0, |
|||
| unsigned | rate = 8000 | |||
| ) |
| void AudioTone::fill | ( | unsigned | max = 0 |
) |
Fill the current sample frame with more tone data.
| void AudioTone::setFreq | ( | unsigned | f1, | |
| unsigned | f2 = 0 | |||
| ) |
double AudioTone::fa1 [protected] |
double AudioTone::fa2 [protected] |
double AudioTone::p1 [protected] |
double AudioTone::p2 [protected] |
double AudioTone::v1 [protected] |
double AudioTone::v2 [protected] |
1.4.7