|
JUCE
|
A simple AudioSource that generates a sine wave. More...
#include <juce_ToneGeneratorAudioSource.h>
Public Member Functions | |
| ToneGeneratorAudioSource () | |
| Creates a ToneGeneratorAudioSource. | |
| ~ToneGeneratorAudioSource () override | |
| 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) override |
| Implementation of the AudioSource method. | |
| void | releaseResources () override |
| Implementation of the AudioSource method. | |
| void | getNextAudioBlock (const AudioSourceChannelInfo &) override |
| Implementation of the AudioSource method. | |
Public Member Functions inherited from AudioSource | |
| virtual | ~AudioSource ()=default |
| Destructor. | |
Additional Inherited Members | |
Protected Member Functions inherited from AudioSource | |
| AudioSource ()=default | |
| Creates an AudioSource. | |
A simple AudioSource that generates a sine wave.
| ToneGeneratorAudioSource::ToneGeneratorAudioSource | ( | ) |
Creates a ToneGeneratorAudioSource.
|
override |
Destructor.
| void ToneGeneratorAudioSource::setAmplitude | ( | float | newAmplitude | ) |
Sets the signal's amplitude.
| void ToneGeneratorAudioSource::setFrequency | ( | double | newFrequencyHz | ) |
Sets the signal's frequency.
|
overridevirtual |
Implementation of the AudioSource method.
Implements AudioSource.
|
overridevirtual |
Implementation of the AudioSource method.
Implements AudioSource.
|
overridevirtual |
Implementation of the AudioSource method.
Implements AudioSource.