Table of Contents

Interface IAudioRenderer

Namespace
VAST.Media
Assembly
VAST.Common.dll

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

float

InputMediaType

Gets or sets the input media type describing the audio format.

MediaType InputMediaType { get; set; }

Property Value

MediaType

InstanceId

Gets or sets the unique identifier for this renderer instance.

Guid InstanceId { get; set; }

Property Value

Guid

PlatformContext

Gets or sets the platform-specific rendering context.

object PlatformContext { get; set; }

Property Value

object

RenderingStrategy

Gets or sets the rendering strategy (low-latency or smooth).

RenderingStrategy RenderingStrategy { get; set; }

Property Value

RenderingStrategy

State

Gets the current state of the renderer.

RendererState State { get; }

Property Value

RendererState

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

float

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

packet VersatileBuffer

The audio packet to process.

Start()

Starts the audio renderer.

void Start()

Stop()

Stops the audio renderer and releases resources.

void Stop()