AudioGraphSettings.MaxPlaybackSpeedFactor Property
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 maximum playback speed of input nodes in the AudioGraph.
public:
property double MaxPlaybackSpeedFactor { double get(); void set(double value); };
double MaxPlaybackSpeedFactor();
void MaxPlaybackSpeedFactor(double value);
public double MaxPlaybackSpeedFactor { get; set; }
var double = audioGraphSettings.maxPlaybackSpeedFactor;
audioGraphSettings.maxPlaybackSpeedFactor = double;
Public Property MaxPlaybackSpeedFactor As Double
double
The maximum playback speed of the associated AudioGraph, as a multiplier of the normal speed of the content. So, a value of 2 represents twice the normal speed and a value of 3 represents three times the normal speed. This value must be in the range of 1 to 1024, inclusive. The default value is 1024.
Device family |
Windows 10, version 1803 (introduced in 10.0.17134.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v6.0)
|
Properties that set the playback speed of a node, such as AudioFileInputNode.PlaybackSpeedFactor, AudioFrameInputNode.PlaybackSpeedFactor, or MediaSourceAudioInputNode.PlaybackSpeedFactor, will be clamped to the maximum value specified by MaxPlaybackSpeedFactor when the audio graph was created.
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.
Product | Versions |
---|---|
WinRT | Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |
- <xref:Windows.Media.Audio.AudioFileInputNode.PlaybackSpeedFactor%0aP%3aWindows.Media.Audio.MediaSourceAudioInputNode.PlaybackSpeedFactor>