Skip to main content
Version: 2.x

Class OdinEncoderHandle

Represents an encoder for local media streams, which encapsulates the components required to process outgoing audio streams captured from local sources (e.g. a microphone). It includes an ingress resampler for sample rate conversion, an Opus encoder for compressing the audio data and a customizable audio pipeline that allows the application of effects to modify the raw audio samples before transmission.

Declaration
public class OdinEncoderHandle : SafeHandleZeroOrMinusOneIsInvalid, IDisposable

Inheritance: System.Object -> System.Runtime.ConstrainedExecution.CriticalFinalizerObject -> System.Runtime.InteropServices.SafeHandle -> Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid

Implements:
System.IDisposable

Properties

IsAlive

Declaration
public bool IsAlive { get; }

Methods

ReleaseHandle()

When overridden in a derived class, executes the code required to free the handle.

Declaration
protected override bool ReleaseHandle()
Returns

System.Boolean: true if the handle is released successfully; otherwise, in the event of a catastrophic failure, false. In this case, it generates a releaseHandleFailed Managed Debugging Assistant.

Implements

  • System.IDisposable