A simple AudioSource that generates a sine wave.
More...
A simple AudioSource that generates a sine wave.
◆ ToneGeneratorAudioSource()
ToneGeneratorAudioSource::ToneGeneratorAudioSource |
( |
| ) |
|
◆ ~ToneGeneratorAudioSource()
ToneGeneratorAudioSource::~ToneGeneratorAudioSource |
( |
| ) |
|
|
override |
◆ setAmplitude()
void ToneGeneratorAudioSource::setAmplitude |
( |
float |
newAmplitude | ) |
|
Sets the signal's amplitude.
◆ setFrequency()
void ToneGeneratorAudioSource::setFrequency |
( |
double |
newFrequencyHz | ) |
|
Sets the signal's frequency.
◆ prepareToPlay()
void ToneGeneratorAudioSource::prepareToPlay |
( |
int |
samplesPerBlockExpected, |
|
|
double |
sampleRate |
|
) |
| |
|
overridevirtual |
◆ releaseResources()
void ToneGeneratorAudioSource::releaseResources |
( |
| ) |
|
|
overridevirtual |
◆ getNextAudioBlock()
The documentation for this class was generated from the following file: