JUCE
Public Member Functions | List of all members
juce::ToneGeneratorAudioSource Class Reference

A simple AudioSource that generates a sine wave. More...

Inheritance diagram for juce::ToneGeneratorAudioSource:

Public Member Functions

 ToneGeneratorAudioSource ()
 Creates a ToneGeneratorAudioSource. More...
 
 ~ToneGeneratorAudioSource ()
 Destructor. More...
 
void setAmplitude (float newAmplitude)
 Sets the signal's amplitude. More...
 
void setFrequency (double newFrequencyHz)
 Sets the signal's frequency. More...
 
void prepareToPlay (int samplesPerBlockExpected, double sampleRate) override
 Implementation of the AudioSource method. More...
 
void releaseResources () override
 Implementation of the AudioSource method. More...
 
void getNextAudioBlock (const AudioSourceChannelInfo &) override
 Implementation of the AudioSource method. More...
 
- Public Member Functions inherited from juce::AudioSource
virtual ~AudioSource ()
 Destructor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from juce::AudioSource
 AudioSource () noexcept
 Creates an AudioSource. More...
 

Detailed Description

A simple AudioSource that generates a sine wave.

Constructor & Destructor Documentation

◆ ToneGeneratorAudioSource()

juce::ToneGeneratorAudioSource::ToneGeneratorAudioSource ( )

◆ ~ToneGeneratorAudioSource()

juce::ToneGeneratorAudioSource::~ToneGeneratorAudioSource ( )

Destructor.

Member Function Documentation

◆ setAmplitude()

void juce::ToneGeneratorAudioSource::setAmplitude ( float  newAmplitude)

Sets the signal's amplitude.

◆ setFrequency()

void juce::ToneGeneratorAudioSource::setFrequency ( double  newFrequencyHz)

Sets the signal's frequency.

◆ prepareToPlay()

void juce::ToneGeneratorAudioSource::prepareToPlay ( int  samplesPerBlockExpected,
double  sampleRate 
)
overridevirtual

Implementation of the AudioSource method.

Implements juce::AudioSource.

◆ releaseResources()

void juce::ToneGeneratorAudioSource::releaseResources ( )
overridevirtual

Implementation of the AudioSource method.

Implements juce::AudioSource.

◆ getNextAudioBlock()

void juce::ToneGeneratorAudioSource::getNextAudioBlock ( const AudioSourceChannelInfo )
overridevirtual

Implementation of the AudioSource method.

Implements juce::AudioSource.


The documentation for this class was generated from the following file: