White noise + filter.
More...
#include "SuperpoweredWhoosh.h"
White noise + filter.
One whoosh instance allocates around 4 kb memory.
◆ Whoosh() [1/2]
Superpowered::Whoosh::Whoosh |
( |
unsigned int |
samplerate | ) |
|
Constructor.
Enabled is false by default.
- Parameters
-
samplerate | The initial sample rate in Hz. |
◆ ~Whoosh()
Superpowered::Whoosh::~Whoosh |
( |
| ) |
|
◆ Whoosh() [2/2]
Superpowered::Whoosh::Whoosh |
( |
const Whoosh & |
| ) |
|
|
private |
◆ operator=()
◆ process()
bool Superpowered::Whoosh::process |
( |
float * |
input, |
|
|
float * |
output, |
|
|
unsigned int |
numberOfFrames |
|
) |
| |
|
virtual |
Processes the audio.
Always call it in the audio processing callback, regardless if the effect is enabled or not for smooth, audio-artifact free operation. It's never blocking for real-time usage. You can change all properties on any thread, concurrently with process().
- Returns
- If process() returns with true, the contents of output are replaced with the audio output. If process() returns with false, the contents of output are not changed.
- Parameters
-
input | Pointer to floating point numbers. 32-bit interleaved stereo input. The output will be mixed to this. Can be NULL. |
output | Pointer to floating point numbers. 32-bit interleaved stereo input. Can point to the same location with output (in-place processing). |
numberOfFrames | Number of frames to process. Recommendation for best performance: multiply of 4, minimum 64. |
Implements Superpowered::FX.
◆ enabled
bool Superpowered::FX::enabled = false |
|
inherited |
Turns the effect on/off. The actual switch will happen on the next process() call for smooth, audio-artifact free operation.
◆ frequency
float Superpowered::Whoosh::frequency |
Limited to >= 20 and <= 20000.
◆ internals
whooshInternals* Superpowered::Whoosh::internals |
|
private |
◆ samplerate
unsigned int Superpowered::FX::samplerate = 0 |
|
inherited |
◆ wet
float Superpowered::Whoosh::wet |
Limited to >= 0 and <= 1.
The documentation for this class was generated from the following file:
- latest/Superpowered/SuperpoweredWhoosh.h