SpatialAudioDeviceConfiguration.SetDefaultSpatialAudioFormatAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tries to set the specified spatial audio format for this device. The caller must be the app that owns this spatial audio format.
public:
virtual IAsyncOperation<SetDefaultSpatialAudioFormatResult ^> ^ SetDefaultSpatialAudioFormatAsync(Platform::String ^ subtype) = SetDefaultSpatialAudioFormatAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<SetDefaultSpatialAudioFormatResult> SetDefaultSpatialAudioFormatAsync(winrt::hstring const& subtype);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<SetDefaultSpatialAudioFormatResult> SetDefaultSpatialAudioFormatAsync(string subtype);
function setDefaultSpatialAudioFormatAsync(subtype)
Public Function SetDefaultSpatialAudioFormatAsync (subtype As String) As IAsyncOperation(Of SetDefaultSpatialAudioFormatResult)
Parameters
- subtype
-
String
Platform::String
winrt::hstring
A string of the GUID for the spatial audio format to set. SpatialAudioFormatSubtype enum will return the neccesary string.
Returns
A result indicating success or why the call failed to set the specified format.
- Attributes