Class SourceSwitchSettings
Represents the currently active sink pad.
Inherited Members
Namespace: VisioForge.Core.Types.X.Special
Assembly: VisioForge.Core.dll
Syntax
public class SourceSwitchSettings
Constructors
SourceSwitchSettings(int)
Initializes a new instance of the SourceSwitchSettings class.
Declaration
public SourceSwitchSettings(int padsCount = 2)
Parameters
Type | Name | Description |
---|---|---|
int | padsCount | The pads count. |
Properties
CacheBuffers
Determines if the active pad caches the buffers still considered valid to avoid missing frames when the pad is reactivated. Default value is false.
Declaration
public bool CacheBuffers { get; set; }
Property Value
Type | Description |
---|---|
bool |
CustomName
Gets or sets the custom name, to see in logs.
Declaration
public string CustomName { get; set; }
Property Value
Type | Description |
---|---|
string |
DefaultActivePad
The currently active sink pad.
Declaration
public int DefaultActivePad { get; set; }
Property Value
Type | Description |
---|---|
int |
DropBackwards
If true, drops buffers that go backwards relative to the last output buffer pre-switch. Default value is false.
Declaration
public bool DropBackwards { get; set; }
Property Value
Type | Description |
---|---|
bool |
PadsCount
Gets or sets the pads count.
Declaration
public int PadsCount { get; set; }
Property Value
Type | Description |
---|---|
int | The pads count. |
SyncMode
Selects how input-selector will sync buffers when in sync-streams mode. Default value is InputSelectorSyncMode.ActiveSegment.
Declaration
public InputSelectorSyncMode SyncMode { get; set; }
Property Value
Type | Description |
---|---|
InputSelectorSyncMode |
SyncStreams
If set to true, all inactive streams will be synced to the running time of the active stream or to the current clock.
Declaration
public bool SyncStreams { get; set; }
Property Value
Type | Description |
---|---|
bool |