Share via


SpatialAudioDeviceConfiguration Klasse

Definition

Stellt ein Audiogerät dar, das Informationen und Steuerung für seine aktuelle räumliche Audioeinrichtung bereitstellt.

public ref class SpatialAudioDeviceConfiguration sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SpatialAudioDeviceConfiguration final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SpatialAudioDeviceConfiguration
Public NotInheritable Class SpatialAudioDeviceConfiguration
Vererbung
Object Platform::Object IInspectable SpatialAudioDeviceConfiguration
Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10, version 1809 (eingeführt in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v7.0)

Eigenschaften

ActiveSpatialAudioFormat

Stellt das derzeit aktive räumliche Audioformat für dieses Gerät bereit. Dies hätte vom System geändert werden können und daher möglicherweise nicht mit der Standardeinstellung identisch sein.

DefaultSpatialAudioFormat

Stellt das standardmäßige räumliche Audioformat für dieses Gerät bereit. Dies ist das Format, das der Benutzer ausgewählt hat.

DeviceId

Die ID des Geräts, das dieses Objekt darstellt.

IsSpatialAudioSupported

Gibt an, ob dieses Gerät jede Form räumlicher Audiodaten unterstützen kann.

Methoden

GetForDeviceId(String)

Erstellt eine SpatialAudioDeviceConfiguration für die angegebene Geräte-ID.

IsSpatialAudioFormatSupported(String)

Gibt an, ob dieses Gerät das angegebene räumliche Audioformat unterstützen kann.

SetDefaultSpatialAudioFormatAsync(String)

Versucht, das angegebene räumliche Audioformat für dieses Gerät festzulegen. Der Aufrufer muss die App sein, die dieses räumliche Audioformat besitzt.

Ereignisse

ConfigurationChanged

Tritt auf, wenn sich der räumliche Audiozustand des Geräts geändert hat.

Gilt für: