/// <summary> /// Clean both buffers. /// </summary> private void EmptyBuffer() { AudioBuffer.Clean(); ResultBuffer.Clean(); }
/// <summary> /// Frees the memory used by the <see cref="AudioRecorder"/> and empties the buffer. /// </summary> public void CleanUp() { SafeGetRecorder()?.Release(); AudioBuffer?.Clean(); }