1#ifndef AUDIO_EFFECTS_SDK_INCLUDE_FACTORY_H
2#define AUDIO_EFFECTS_SDK_INCLUDE_FACTORY_H
6#if defined(__clang__) || defined(__GNUC__)
10#define AESDK_CALLBACK __attribute__((__cdecl__))
12#define AESDK_API_EXPORT
15#define AESDK_CALLBACK __cdecl
16#define AESDK_API_EXPORT __declspec(dllexport)
17#define AESDK_API_DECL __cdecl
23namespace audio_effects_sdk {
108extern "C" AESDK_API_EXPORT
Contains authorization process results.
Definition sdk_factory.h:40
virtual AuthStatus status() const =0
The status of authorization process.
Audio processing interface that applies noise suppression.
Definition pipeline.h:38
SDK entry point for creating pipelines and handling authorization.
Definition sdk_factory.h:56
virtual IPipeline * createPipeline(AudioFormatType format, uint32_t sampleRate, uint32_t channels, float pcmScale)=0
Creates audio processing pipeline instance.
virtual IAuthResult * authWithKey(const char *key)=0
Offline authorization with a secret key.
virtual void waitUntilAsyncWorkFinished()=0
Wait until all started async tasks are finished.
virtual IAuthResult * authWithAPIUrl(const char *customerID, const char *customApiUrl, pfnOnAuthCompletedCallback callback, void *ctx)=0
Authenticates SDK instance online with custom server.
virtual IAuthResult * auth(const char *customerID, pfnOnAuthCompletedCallback callback, void *ctx)=0
Authenticates SDK instance online.
AESDK_API_EXPORT audio_effects_sdk::ISDKFactory *AESDK_API_DECL createAudioEffectsSDKFactory()
Creates an instance of ISDKFactory.
AuthStatus
Describes result of authorization process.
Definition sdk_factory.h:27
@ active
Authorization finished successfully, the SDK can be used.
Definition sdk_factory.h:31
@ error
Authorization finished with error (e.g., missing internet connection).
Definition sdk_factory.h:29
@ inactive
Such customer has no license or the license revoked.
Definition sdk_factory.h:33
@ expired
The license is expired.
Definition sdk_factory.h:35
void(AESDK_CALLBACK * pfnOnAuthCompletedCallback)(IAuthResult *result, void *ctx)
Callback triggered when the authorization process is complete.
Definition sdk_factory.h:50