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