AudioFileInputNode.Duration AudioFileInputNode.Duration AudioFileInputNode.Duration AudioFileInputNode.Duration AudioFileInputNode.Duration Property

Definition

Gets the duration for the audio input file.

public : TimeSpan Duration { get; }
TimeSpan Duration();
public TimeSpan Duration { get; }
Public ReadOnly Property Duration As TimeSpan
var timeSpan = audioFileInputNode.duration;

Property Value

TimeSpan TimeSpan TimeSpan

A value indicating the duration for the audio input file.

Remarks

The Duration property represents the duration of the audio input file. The StartTime and EndTime properties can be used to set the range of the file that is used for playback, but setting these properties does not cause the value returned by Duration to change.