VisioForge (c) 2025

Search Results for

    Class AudioSource

    Audio source used in Video Edit SDK.

    Inheritance
    object
    AudioSource
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: VisioForge.Core.Types.VideoEdit
    Assembly: VisioForge.Core.dll
    Syntax
    public class AudioSource

    Constructors

    AudioSource(string, TimeSpan?, TimeSpan?, string, int, double)

    Initializes a new instance of the AudioSource class.

    Declaration
    public AudioSource(string filename, TimeSpan? startTime = null, TimeSpan? stopTime = null, string fileToSync = null, int streamNumber = 0, double rate = 1)
    Parameters
    Type Name Description
    string filename

    File name.

    TimeSpan? startTime

    Start time. Set to -1 start and stop time to add full file.

    TimeSpan? stopTime

    Stop time. Set to -1 start and stop time to add full file.

    string fileToSync

    File to sync. For example you must specify video file name if you are adding audio stream from video file.

    int streamNumber

    Stream number.

    double rate

    Playback rate. 1.0 - 100%, 2.0 - 200%, 0.5 = 50%.

    AudioSource(string, FileSegment[], string, int, double)

    Initializes a new instance of the AudioSource class.

    Declaration
    public AudioSource(string filename, FileSegment[] segments, string fileToSync = null, int streamNumber = 0, double rate = 1)
    Parameters
    Type Name Description
    string filename

    File name.

    FileSegment[] segments

    Segments list.

    string fileToSync

    File to sync. For example you must specify video file name if you are adding audio stream from video file.

    int streamNumber

    Stream number.

    double rate

    Playback rate. 1.0 - 100%, 2.0 - 200%, 0.5 = 50%. .

    Properties

    FileToSync

    Gets or sets sync file name. For example you must specify video file name if you are adding audio stream from video file.

    Declaration
    public string FileToSync { get; set; }
    Property Value
    Type Description
    string

    Filename

    Gets or sets audio file name.

    Declaration
    public string Filename { get; set; }
    Property Value
    Type Description
    string

    IgnorePlaybackCheck

    Gets or sets a value indicating whether to ignore file playback check.

    Declaration
    public bool IgnorePlaybackCheck { get; set; }
    Property Value
    Type Description
    bool

    true if ignore playback check; otherwise, false.

    Rate

    Gets or sets playback rate. 1.0 - 100%, 2.0 - 200%, 0.5 = 50%.

    Declaration
    public double Rate { get; set; }
    Property Value
    Type Description
    double

    Segments

    Gets or sets segments list for the file.

    Declaration
    public FileSegment[] Segments { get; set; }
    Property Value
    Type Description
    FileSegment[]

    StreamNumber

    Gets or sets stream number.

    Declaration
    public int StreamNumber { get; set; }
    Property Value
    Type Description
    int