40 const float m_threshold;
52 Threshold(std::shared_ptr<ISound> sound,
float threshold = 0.0f);
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition Audaspace.h:119
float sample_t
Sample type.(float samples)
Definition Audaspace.h:126
#define AUD_LOCAL
Used for hiding symbols from export in the shared library.
Definition Audaspace.h:80
#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
This class provides an interface for infinite impulse response filters via a callback filter function...
Definition CallbackIIRFilterReader.h:50
This sound is a base class for all effect factories that take one other sound as input.
Definition Effect.h:34
This sound Transforms any signal to a square signal by thresholding.
Definition Threshold.h:35
virtual std::shared_ptr< IReader > createReader()
Creates a reader for playback of the sound source.
Threshold(std::shared_ptr< ISound > sound, float threshold=0.0f)
Creates a new threshold sound.
static sample_t AUD_LOCAL thresholdFilter(CallbackIIRFilterReader *reader, float *threshold)
The thresholdFilter function implements the doFilterIIR callback for the callback IIR filter.
static void AUD_LOCAL endThresholdFilter(float *threshold)
The endThresholdFilter function implements the endFilterIIR callback for the callback IIR filter.
float getThreshold() const
Returns the threshold.