Skip to main content

aic_processor_context_reset

Function aic_processor_context_reset 

Source
pub unsafe extern "C" fn aic_processor_context_reset(
    context: *const AicProcessorContext,
) -> Type
Expand description

Clears all internal state and buffers. This also resets the VAD state associated with this processor.

Call this when the audio stream is interrupted or when seeking to prevent artifacts from previous audio content.

This operates on the processor associated with the provided context handle.

The processor stays initialized to the configured settings.

§Parameters

  • context: Processor context instance to reset. Must not be NULL.

§Returns

  • AIC_ERROR_CODE_SUCCESS: State cleared successfully
  • AIC_ERROR_CODE_NULL_POINTER: context is NULL

§Safety

  • Real-time safe: Can be called from audio processing threads.
  • Thread-safe: Can be called from any thread.