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 AppBridgeAudioSourceSettingsInheritance
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
channelstring-
The channel name for matching with a sink.
infoAudioInfoX-
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
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
Info
Gets or sets the audio format information. This is required for appsrc caps negotiation.
public AudioInfoX Info { get; set; }Property Value
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
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
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
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.