Class AppBridgeAudioSinkSettings
- Namespace
- VisioForge.Core.Types.X.Bridge
- Assembly
- VisioForge.Core.dll
Settings for AppBridge audio sink block. This sink uses GStreamer's appsink element to capture audio buffers and pass them directly to a linked AppBridge audio source in another pipeline.
public class AppBridgeAudioSinkSettingsInheritance
Inherited Members
Constructors
AppBridgeAudioSinkSettings(string, AudioInfoX)
Initializes a new instance of the VisioForge.Core.Types.X.Bridge.AppBridgeAudioSinkSettings class.
public AppBridgeAudioSinkSettings(string channel, AudioInfoX info = null)Parameters
channelstring-
The channel name for matching with a source.
infoAudioInfoX-
Optional audio format information.
Properties
Channel
Gets the channel name used to match this sink with a corresponding source. Sinks and sources with the same channel name are automatically linked. For security, use VisioForge.Core.Types.X.Bridge.AppBridgeAudioSinkSettings.GenerateUniqueChannel(System.String) to create unpredictable channel names.
public string Channel { get; }Property Value
Drop
Gets or sets whether to drop old buffers when the queue is full. Default is true to prevent latency buildup when source is not connected.
public bool Drop { get; set; }Property Value
Info
Gets or sets the audio format information. If specified, a capsfilter will be added to convert audio to this format.
public AudioInfoX Info { get; set; }Property Value
MaxBuffers
Gets or sets the maximum number of buffers to queue in the appsink. When this limit is reached, older buffers may be dropped if Drop is true. Default is 2 for minimal latency. Set to 0 for unlimited.
public uint MaxBuffers { get; set; }Property Value
Sync
Gets or sets whether the appsink should synchronize to the pipeline clock. For live sources like Decklink output, this should be false to let the downstream pipeline handle timing. Default is false.
public bool Sync { get; set; }Property Value
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
prefixstring-
Optional prefix for the channel name.
Returns
- string
-
A unique channel name.