AudioFileInputNode.PlaybackSpeedFactor Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the playback speed factor for the audio file input node.
public:
property double PlaybackSpeedFactor { double get(); void set(double value); };
double PlaybackSpeedFactor();
void PlaybackSpeedFactor(double value);
public double PlaybackSpeedFactor { get; set; }
var double = audioFileInputNode.playbackSpeedFactor;
audioFileInputNode.playbackSpeedFactor = double;
Public Property PlaybackSpeedFactor As Double
Property Value
double
A value indicating the playback speed factor.
Remarks
This is a linear scale of the playback speed. So, for example a value of .5 will result in half-speed playback and a value of 2.0 will play the audio file back at double speed.
The value you specify for this property is clamped to the value of the MaxPlaybackSpeedFactor property of the AudioGraphSettings object used to initialize the audio graph to which the node belongs. The default maximum value is 1024.
Important
When an audio graph supports a playback speed factor greater than 1, the system must allocate additional memory in order to maintain a sufficient buffer of audio data. For this reason, setting MaxPlaybackSpeedFactor to the lowest value required by your app will reduce the memory consumption of your app. If your app will only play back content at normal speed, it is recommended that you set MaxPlaybackSpeedFactor to 1.