ToneGeneratorAudioSource Class Reference

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

Inherits AudioSource.

List of all members.

Public Member Functions

 ToneGeneratorAudioSource ()
 Creates a ToneGeneratorAudioSource.
 ~ToneGeneratorAudioSource ()
 Destructor.
void setAmplitude (const float newAmplitude)
 Sets the signal's amplitude.
void setFrequency (const double newFrequencyHz)
 Sets the signal's frequency.
void prepareToPlay (int samplesPerBlockExpected, double sampleRate)
 Implementation of the AudioSource method.
void releaseResources ()
 Implementation of the AudioSource method.
void getNextAudioBlock (const AudioSourceChannelInfo &bufferToFill)
 Implementation of the AudioSource method.

Detailed Description

A simple AudioSource that generates a sine wave.


Constructor & Destructor Documentation

ToneGeneratorAudioSource::ToneGeneratorAudioSource (  ) 
ToneGeneratorAudioSource::~ToneGeneratorAudioSource (  ) 

Destructor.


Member Function Documentation

void ToneGeneratorAudioSource::setAmplitude ( const float  newAmplitude  ) 

Sets the signal's amplitude.

void ToneGeneratorAudioSource::setFrequency ( const double  newFrequencyHz  ) 

Sets the signal's frequency.

void ToneGeneratorAudioSource::prepareToPlay ( int  samplesPerBlockExpected,
double  sampleRate 
) [virtual]

Implementation of the AudioSource method.

Implements AudioSource.

void ToneGeneratorAudioSource::releaseResources (  )  [virtual]

Implementation of the AudioSource method.

Implements AudioSource.

void ToneGeneratorAudioSource::getNextAudioBlock ( const AudioSourceChannelInfo bufferToFill  )  [virtual]

Implementation of the AudioSource method.

Implements AudioSource.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Mon Apr 26 11:42:20 2010 for JUCE by  doxygen 1.6.3