A simple AudioSource that generates a sine wave. More...
Inherits AudioSource.
Public Member Functions | |
| ToneGeneratorAudioSource () | |
| Creates a ToneGeneratorAudioSource. | |
| ~ToneGeneratorAudioSource () | |
| Destructor. | |
| void | setAmplitude (float newAmplitude) |
| Sets the signal's amplitude. | |
| void | setFrequency (double newFrequencyHz) |
| Sets the signal's frequency. | |
| void | prepareToPlay (int samplesPerBlockExpected, double sampleRate) |
| Implementation of the AudioSource method. | |
| void | releaseResources () |
| Implementation of the AudioSource method. | |
| void | getNextAudioBlock (const AudioSourceChannelInfo &bufferToFill) |
| Implementation of the AudioSource method. | |
A simple AudioSource that generates a sine wave.
| ToneGeneratorAudioSource::ToneGeneratorAudioSource | ( | ) |
Creates a ToneGeneratorAudioSource.
| ToneGeneratorAudioSource::~ToneGeneratorAudioSource | ( | ) |
Destructor.
| void ToneGeneratorAudioSource::setAmplitude | ( | float | newAmplitude ) |
Sets the signal's amplitude.
| void ToneGeneratorAudioSource::setFrequency | ( | double | newFrequencyHz ) |
Sets the signal's frequency.
| void ToneGeneratorAudioSource::prepareToPlay | ( | int | samplesPerBlockExpected, |
| double | sampleRate | ||
| ) | [virtual] |
Implementation of the AudioSource method.
Implements AudioSource.
| void ToneGeneratorAudioSource::releaseResources | ( | ) | [virtual] |
Implementation of the AudioSource method.
Implements AudioSource.
| void ToneGeneratorAudioSource::getNextAudioBlock | ( | const AudioSourceChannelInfo & | bufferToFill ) | [virtual] |
Implementation of the AudioSource method.
Implements AudioSource.