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