39 const float m_frequency;
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition Audaspace.h:119
#define AUD_NAMESPACE_BEGIN
Opens the audaspace namespace aud.
Definition Audaspace.h:116
#define AUD_API
Used for exporting symbols in the shared library.
Definition Audaspace.h:93
Defines all important macros and basic data structures for stream format descriptions.
double SampleRate
Sample rate type.
Definition Specification.h:115
@ RATE_48000
44100 Hz.
Definition Specification.h:108
This class represents a type of sound source and saves the necessary values for it.
Definition ISound.h:40
This sound creates a reader that plays a triangle tone.
Definition Triangle.h:34
float getFrequency() const
Returns the frequency of the triangle wave.
virtual std::shared_ptr< IReader > createReader()
Creates a reader for playback of the sound source.
Triangle(float frequency, SampleRate sampleRate=RATE_48000)
Creates a new triangle sound.