AudioGraphSettings.MaxPlaybackSpeedFactor 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 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
Property Value
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.
Windows requirements
Device family |
Windows 10, version 1803 (introduced in 10.0.17134.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v6.0)
|
Remarks
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.
Applies to
See also
- <xref:Windows.Media.Audio.AudioFileInputNode.PlaybackSpeedFactor%0aP%3aWindows.Media.Audio.MediaSourceAudioInputNode.PlaybackSpeedFactor>