AudioGraphSettings 类

定义

表示音频图的初始化设置。 将此对象的属性设置为所需值,然后调用 AudioGraph.CreateAsync 以创建具有指定设置的新音频图实例。

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
继承
Object Platform::Object IInspectable AudioGraphSettings
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)
应用功能
backgroundMediaRecording

注解

版本历史记录

Windows 版本 SDK 版本 已添加值
1803 17134 MaxPlaybackSpeedFactor

构造函数

AudioGraphSettings(AudioRenderCategory)

使用为指定的 AudioRenderCategory 优化的初始设置值初始化 AudioGraphSettings 类的新实例。

属性

AudioRenderCategory

获取或设置一个值,该值指示音频图形的音频呈现类别设置。

DesiredRenderDeviceAudioProcessing

获取或设置一个值,该值指示音频图所需的音频处理模式设置。

DesiredSamplesPerQuantum

获取或设置为音频图定义的每个量子所需的样本数。

EncodingProperties

获取或设置音频图的音频编码属性设置。

MaxPlaybackSpeedFactor

获取或设置 AudioGraph 中输入节点的最大播放速度。

PrimaryRenderDevice

获取或设置一个 对象,该对象表示音频图的主呈现设备。

QuantumSizeSelectionMode

获取或设置音频图的量子大小选择模式。

适用于