|
Audio Effects SDK
AI-powered SDK for real-time audio enhancement.
|
Audio processing interface that applies noise suppression. More...
#include <pipeline.h>
Public Member Functions | |
| virtual bool | isNoiseSuppressionEnabled () const =0 |
| virtual void | setNoiseSuppressionEnabled (bool enabled)=0 |
| Enables/disables noise suppression in the pipeline. | |
| virtual float | noiseSuppressionPower () const =0 |
| virtual void | setNoiseSuppressionPower (float value)=0 |
| Controls the intensity of noise suppression applied to the audio stream. | |
| virtual void | setLatencyMode (LatencyMode mode)=0 |
| Sets latency mode. | |
| virtual LatencyMode | latencyMode () const =0 |
| virtual void | setNotificationHandler (INotificationHandler *handler)=0 |
| Sets the notification handler. | |
| virtual uint32_t | process (const void *input, uint32_t inputFrameNum, void *output, uint32_t outputFrameNum)=0 |
| Performs audio processing and applies enabled audio effects. | |
| virtual uint32_t | flush (void *output, uint32_t outputFrameNum)=0 |
| Flushes residual audio frames from the pipeline and resets its internal state. | |
| Public Member Functions inherited from audio_effects_sdk::IRelease | |
| virtual void | release ()=0 |
| Releases the object and its resources. | |
Audio processing interface that applies noise suppression.
|
pure virtual |
Flushes residual audio frames from the pipeline and resets its internal state.
During processing, the pipeline buffers audio frames internally. This method:
Subsequent calls to IPipeline::process will process audio from a fresh state after flushing.
| output | Pointer to output audio buffer (pass nil to reset without frame retrieval) |
| frameNum | Maximum writable capacity of output buffer (in frames) |
|
pure virtual |
Performs audio processing and applies enabled audio effects.
Supports three usage modes:
Can process audio in place (same buffer for input and output), but with some requirements:
Thread-safe for concurrent push/pull operations when:
| input | Pointer to input audio buffer (may be same as output buffer). |
| inputFrameNum | Available frames in input buffer. |
| output | Output audio buffer (may be same as input buffer). |
| outputFrameNum | Output buffer capacity (in frames). |
|
pure virtual |
Sets latency mode.
Must be set prior to the first call to IPipeline::process(). If changed afterward, the new setting will only take effect after pipeline reset (following the next flush operation).
This property is thread-safe,
|
pure virtual |
Enables/disables noise suppression in the pipeline.
When disabled, returns unmodified audio frames. This property is thread-safe. Changes may take effect after a short delay if modified during processing.
|
pure virtual |
Controls the intensity of noise suppression applied to the audio stream.
This property is thread-safe.
| value | Higher number = stronger filtering. Range: 0 to 1 (inclusive). |
|
pure virtual |
Sets the notification handler.
The pipeline calls INotificationHandler::release() when replacing or destroying handlers. Replaces any previously set handler.