Skip to main content

aic_processor_create

Function aic_processor_create 

Source
pub unsafe extern "C" fn aic_processor_create(
    processor: *mut *mut AicProcessor,
    model: *const AicModel,
    license_key: *const c_char,
) -> Type
Expand description

Creates a new audio processor instance.

Multiple processors can be created to process different audio streams simultaneously or to switch between different enhancement algorithms during runtime.

§Parameters

  • processor: Receives the handle to the newly created processor. Must not be NULL.
  • model: Handle to the model instance to process. Must not be NULL.
  • license_key: NULL-terminated string containing your license key. Must not be NULL.

§Returns

  • AIC_ERROR_CODE_SUCCESS: Processor created successfully
  • AIC_ERROR_CODE_NULL_POINTER: processor or model or license_key is NULL
  • AIC_ERROR_CODE_LICENSE_INVALID: License key format is incorrect
  • AIC_ERROR_CODE_LICENSE_VERSION_UNSUPPORTED: License version is not compatible with the SDK version
  • AIC_ERROR_CODE_LICENSE_EXPIRED: License key has expired

§Safety

  • This function is not thread-safe. Ensure no other threads are using the processor handle.