Audio Effects SDK
AI-powered SDK for real-time audio enhancement.
|
SDK entry point for creating pipelines and handling authorization. More...
#include <sdk_factory.h>
Public Member Functions | |
virtual IAuthResult * | auth (const char *customerID, pfnOnAuthCompletedCallback callback, void *ctx)=0 |
Authenticates SDK instance online. | |
virtual IAuthResult * | authWithAPIUrl (const char *customerID, const char *customApiUrl, pfnOnAuthCompletedCallback callback, void *ctx)=0 |
Authenticates SDK instance online with custom server. | |
virtual IAuthResult * | authWithKey (const char *key)=0 |
Offline authorization with a secret key. | |
virtual IPipeline * | createPipeline (AudioFormatType format, uint32_t sampleRate, uint32_t channels, float pcmScale)=0 |
Creates audio processing pipeline instance. | |
virtual void | waitUntilAsyncWorkFinished ()=0 |
Wait until all started async tasks are finished. | |
Public Member Functions inherited from audio_effects_sdk::IRelease | |
virtual void | release ()=0 |
Releases the object and its resources. |
SDK entry point for creating pipelines and handling authorization.
An instance of ISDKFactory is lightweight when no IPipeline instances exist and can be used to create multiple IPipeline instances.
|
pure virtual |
Authenticates SDK instance online.
Internet connection is required. Initiates the authorization process. During this process, the SDK checks the license status and returns the result. Upon completion, the callback is triggered if provided. Can be used synchronously or asynchronously. Pass nullptr as callback to use synchronously.
If authorization completes successfully, IAuthResult::status() returns AuthStatus::active. Otherwise, the SDK cannot be used.
customerID | Unique client identifier. |
callback | Callback to be called on completion. |
ctx | The pointer that will be passes into callback. |
|
pure virtual |
Authenticates SDK instance online with custom server.
Same as ISDKFactory::auth() but allows use custom authorization server.
customerID | Same as ISDKFactory::auth() |
customApiUrl | Custom authorization server URL. |
callback | Same as ISDKFactory::auth() |
ctx | Same as ISDKFactory::auth() |
|
pure virtual |
Offline authorization with a secret key.
Internet connection is NOT required.
key | Client's unique secret key (DO NOT expose) |
|
pure virtual |
Creates audio processing pipeline instance.
Before creating the first instance of IPipeline authorization is needed. For authorization see IPipeline::auth(), IPipeline::authWithAPIUrl() or IPipeline::authWithKey().
format | format of input/output samples. |
sampleRate | frames per seconds. |
channels | Channel count (currently only mono [1] supported). |
pcmScale | PCM range for float32 (0 = default [-1, 1], e.g., 100 = [-100.0, 100.0]). |
|
pure virtual |
Wait until all started async tasks are finished.
Including authorization and notifications.