Audaspace 1.5.0
A high level audio library.
|
This sound creates a reader that plays a square tone. More...
#include <Square.h>
Public Member Functions | |
Square (float frequency, SampleRate sampleRate=RATE_48000) | |
Creates a new square sound. | |
float | getFrequency () const |
Returns the frequency of the square wave. | |
virtual std::shared_ptr< IReader > | createReader () |
Creates a reader for playback of the sound source. | |
Public Member Functions inherited from ISound | |
virtual | ~ISound () |
Destroys the sound. | |
This sound creates a reader that plays a square tone.
Square::Square | ( | float | frequency, |
SampleRate | sampleRate = RATE_48000 ) |
Creates a new square sound.
frequency | The desired frequency. |
sampleRate | The target sample rate for playback. |
|
virtual |