Interface IAudioRenderer
Defines the contract for an audio renderer that can play audio samples.
public interface IAudioRenderer : IDisposable
- Inherited Members
Properties
Balance
Gets or sets the audio balance between left and right channels, in the range 0.0 (left) to 0.5 (center) to 1.0 (right).
float Balance { get; set; }
Property Value
InputMediaType
Gets or sets the input media type describing the audio format.
MediaType InputMediaType { get; set; }
Property Value
InstanceId
Gets or sets the unique identifier for this renderer instance.
Guid InstanceId { get; set; }
Property Value
PlatformContext
Gets or sets the platform-specific rendering context.
object PlatformContext { get; set; }
Property Value
RenderingStrategy
Gets or sets the rendering strategy (low-latency or smooth).
RenderingStrategy RenderingStrategy { get; set; }
Property Value
State
Gets the current state of the renderer.
RendererState State { get; }
Property Value
Volume
Gets or sets the audio volume level, in the range 0.0 (mute) to 1.0 (full volume).
float Volume { get; set; }
Property Value
Methods
Present()
Presents the processed audio to the output device.
void Present()
Process(VersatileBuffer)
Processes an audio packet for rendering.
void Process(VersatileBuffer packet)
Parameters
packetVersatileBufferThe audio packet to process.
Start()
Starts the audio renderer.
void Start()
Stop()
Stops the audio renderer and releases resources.
void Stop()