AudioGraphSettings 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示音訊圖形的初始化設定。 將此物件的屬性設定為所需的值,然後呼叫 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
- 繼承
- 屬性
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 |
取得或設定音訊圖形的量子大小選取模式。 |