AudioGraphSettings Class

Definition

Represents initialization settings for an audio graph. Set the properties of this object to your desired values and then call AudioGraph.CreateAsync to create a new audio graph instance with the specified settings.

public ref class AudioGraphSettings sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Audio.IAudioGraphSettingsFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AudioGraphSettings final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Audio.IAudioGraphSettingsFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class AudioGraphSettings final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Audio.IAudioGraphSettingsFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AudioGraphSettings
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Audio.IAudioGraphSettingsFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class AudioGraphSettings
function AudioGraphSettings(audioRenderCategory)
Public NotInheritable Class AudioGraphSettings
Inheritance
Object IInspectable AudioGraphSettings
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
backgroundMediaRecording

Remarks

Version history

Windows version SDK version Value added
1803 17134 MaxPlaybackSpeedFactor

Constructors

AudioGraphSettings(AudioRenderCategory)

Initializes a new instance of the AudioGraphSettings class with initial settings values optimized for the specified AudioRenderCategory.

Properties

AudioRenderCategory

Gets or sets a value that indicates the audio render category setting for the audio graph.

DesiredRenderDeviceAudioProcessing

Gets or sets a value that indicates the desired audio processing mode setting for the audio graph.

DesiredSamplesPerQuantum

Gets or sets the desired number of samples per quantum defined for the audio graph.

EncodingProperties

Gets or sets the audio encoding properties setting for the audio graph.

MaxPlaybackSpeedFactor

Gets or sets the maximum playback speed of input nodes in the AudioGraph.

PrimaryRenderDevice

Gets or sets an object that represents the primary render device for the audio graph.

QuantumSizeSelectionMode

Gets or sets the quantum size selection mode for the audio graph.

Applies to