OpenShot Library | OpenShotAudio  0.2.2
juce::ToneGeneratorAudioSource Class Reference

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

#include <juce_ToneGeneratorAudioSource.h>

+ Inheritance diagram for juce::ToneGeneratorAudioSource:

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 juce::AudioSource
virtual ~AudioSource ()=default
 Destructor.
 

Additional Inherited Members

- Protected Member Functions inherited from juce::AudioSource
 AudioSource ()=default
 Creates an AudioSource.
 

Detailed Description

A simple AudioSource that generates a sine wave.

Definition at line 37 of file juce_ToneGeneratorAudioSource.h.


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