Public Member Functions

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 (float newAmplitude)
 Sets the signal's amplitude.
void setFrequency (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 ( float  newAmplitude )

Sets the signal's amplitude.

void ToneGeneratorAudioSource::setFrequency ( 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 Defines