Release an audio context ------------------------- Once the end of the file or stream being processed is reached, the context should not be reused. If more processing is required (eg another file or stream) then a new context should be created. Releasing a context that is no longer required frees up any initialised memory used by that context. .. tabs:: .. code-tab:: c++ // Release an audio processing context Iris::releaseAudioContext(config.contextId); // any call to process with this contextId will now return silence. .. code-tab:: py # Release an audio processing context iris.sdk.release_audio_context(config.context_id) # any call to process with this context_id will now return silence. .. code-tab:: typescript // Release an audio processing context iris.releaseAudioContext(config.contextId) // any call to process with this context_id will now return silence. Once all processing is complete, all memory used by the sdk should be freed by calling :func:`~.cleanup`. .. tabs:: .. code-tab:: c++ // Release all unreleased audio processing contexts, free all sdk memory Iris::cleanup(); // Iris::init() must be called again before any further usage .. code-tab:: py # Release all unreleased audio processing contexts, free all sdk memory iris.sdk.cleanup() # iris.sdk.init() must be called again before any further usage .. code-tab:: typescript // Release all unreleased audio processing contexts, free all sdk memory iris.cleanup() // iris.sdk.init() must be called again before any further usage