Class AudioFileSource
Audio file source used in Video Edit SDK.
Inherited Members
Namespace: VisioForge.Core.Types.X.VideoEdit
Assembly: VisioForge.Core.dll
Syntax
public class AudioFileSource
Constructors
AudioFileSource(string, TimeSpan?, TimeSpan?, int, double)
Initializes a new instance of the AudioFileSource class.
Declaration
public AudioFileSource(string filename, TimeSpan? startTime = null, TimeSpan? stopTime = 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. |
| int | streamNumber | Stream number. |
| double | rate | Playback rate. 1.0 - 100%, 2.0 - 200%, 0.5 = 50%. |
AudioFileSource(string, FileSegment[], int, double)
Initializes a new instance of the AudioFileSource class.
Declaration
public AudioFileSource(string filename, FileSegment[] segments, int streamNumber = 0, double rate = 1)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filename | File name. |
| FileSegment[] | segments | Segments list. |
| int | streamNumber | Stream number. |
| double | rate | Playback rate. 1.0 - 100%, 2.0 - 200%, 0.5 = 50%. . |
Properties
Effects
Gets the audio effects.
Declaration
public List<IVideoEditXAudioEffect> Effects { get; }
Property Value
| Type | Description |
|---|---|
| List<IVideoEditXAudioEffect> |
Filename
Gets or sets audio file name.
Declaration
public string Filename { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
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 |