Share via


ElementSoundPlayer.SpatialAudioMode 屬性

定義

取得或設定值,這個值表示空間音訊為開啟、關閉或自動處理。

public:
 static property ElementSpatialAudioMode SpatialAudioMode { ElementSpatialAudioMode get(); void set(ElementSpatialAudioMode value); };
static ElementSpatialAudioMode SpatialAudioMode();

static void SpatialAudioMode(ElementSpatialAudioMode value);
public static ElementSpatialAudioMode SpatialAudioMode { get; set; }
var elementSpatialAudioMode = ElementSoundPlayer.spatialAudioMode;
ElementSoundPlayer.spatialAudioMode = elementSpatialAudioMode;
Public Shared Property SpatialAudioMode As ElementSpatialAudioMode

屬性值

列舉值,指出空間音訊為開啟、關閉或自動處理。 預設值為 Auto

Windows 需求

裝置系列
Windows 10, version 1803 (已於 10.0.17134.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v6.0 引進)

適用於