Applies given DC offset to incoming signal.
More...
#include <Offset.hpp>
|
| Offset (const float offset=0.0f) |
| Offset constructor.
|
|
void | setOffset (const float offset) |
| Sets the offset value.
|
|
float | getOffset () const |
| Gets the offset value currently in use.
|
|
void | process (float *buffer, const uint numberOfFrames) const |
| Applies the offset to the given audio buffer.
|
|
void | process (AudioBuffer< float > &audioBuffer) const |
| Applies the offset to the given audio buffer.
|
|
Applies given DC offset to incoming signal.
Offset class
◆ Offset()
switchboard::Offset::Offset |
( |
const float | offset = 0.0f | ) |
|
Offset constructor.
- Parameters
-
offset | DC offset to be applied to the incoming signal. |
◆ getOffset()
float switchboard::Offset::getOffset |
( |
| ) |
const |
Gets the offset value currently in use.
- Returns
- The offset value.
◆ process() [1/2]
void switchboard::Offset::process |
( |
AudioBuffer< float > & | audioBuffer | ) |
const |
Applies the offset to the given audio buffer.
- Parameters
-
audioBuffer | The audio buffer. |
◆ process() [2/2]
void switchboard::Offset::process |
( |
float * | buffer, |
|
|
const uint | numberOfFrames ) const |
Applies the offset to the given audio buffer.
- Parameters
-
buffer | The audio buffer. |
numberOfFrames | The number of frames in the audio buffer. |
◆ setOffset()
void switchboard::Offset::setOffset |
( |
const float | offset | ) |
|
Sets the offset value.
- Parameters
-