Table of Contents

Class AppBridgeAudioSourceSettings

Namespace
VisioForge.Core.Types.X.Bridge
Assembly
VisioForge.Core.dll

Settings for AppBridge audio source block. This source uses GStreamer's appsrc element to receive audio buffers directly from a linked AppBridge audio sink in another pipeline.

public class AppBridgeAudioSourceSettings

Inheritance

Inherited Members

Constructors

AppBridgeAudioSourceSettings(string, AudioInfoX)

Initializes a new instance of the VisioForge.Core.Types.X.Bridge.AppBridgeAudioSourceSettings class.

public AppBridgeAudioSourceSettings(string channel, AudioInfoX info)

Parameters

channel string

The channel name for matching with a sink.

info AudioInfoX

Audio format information (required for caps).

Properties

Channel

Gets the channel name used to match this source with a corresponding sink. Sinks and sources with the same channel name are automatically linked. For security, use VisioForge.Core.Types.X.Bridge.AppBridgeAudioSourceSettings.GenerateUniqueChannel(System.String) to create unpredictable channel names.

public string Channel { get; }

Property Value

string

DoTimestamp

Gets or sets whether appsrc should apply timestamps to buffers. CRITICAL: Set to false to preserve original timestamps from the source pipeline. If true, appsrc will overwrite timestamps which breaks synchronization. Default is false.

public bool DoTimestamp { get; set; }

Property Value

bool

Info

Gets or sets the audio format information. This is required for appsrc caps negotiation.

public AudioInfoX Info { get; set; }

Property Value

AudioInfoX

IsLive

Gets or sets whether this is a live source. For live streaming scenarios (like Decklink output), this should be true. Default is true.

public bool IsLive { get; set; }

Property Value

bool

MaxBuffers

Gets or sets the maximum number of buffers to queue in the appsrc. Default is 10. Set to 0 for unlimited.

public ulong MaxBuffers { get; set; }

Property Value

ulong

MaxTime

Gets or sets the maximum time in nanoseconds to queue in the appsrc. Default is 500ms (500,000,000 ns). Set to 0 for unlimited.

public ulong MaxTime { get; set; }

Property Value

ulong

Methods

GenerateUniqueChannel(string)

Generates a unique channel name using a GUID. Use this method to create secure channel names that cannot be guessed or intercepted.

public static string GenerateUniqueChannel(string prefix = "audio")

Parameters

prefix string

Optional prefix for the channel name.

Returns

string

A unique channel name.