Dela via


MediaSourceAudioInputNodeCreationStatus Enum

Definition

Specifies the result status of a call to AudioGraph.CreateMediaSourceAudioInputNode.

public enum class MediaSourceAudioInputNodeCreationStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
enum class MediaSourceAudioInputNodeCreationStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
public enum MediaSourceAudioInputNodeCreationStatus
var value = Windows.Media.Audio.MediaSourceAudioInputNodeCreationStatus.success
Public Enum MediaSourceAudioInputNodeCreationStatus
Inheritance
MediaSourceAudioInputNodeCreationStatus
Attributes

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Fields

Name Value Description
Success 0

The MediaSourceAudioInputNode was created successfully.

FormatNotSupported 1

The MediaSourceAudioInputNode could not be created because the media content associated with the MediaSource is in a format that is not supported by the AudioGraph API.

NetworkError 2

The MediaSourceAudioInputNode could not be created because of a network error.

UnknownFailure 3

The MediaSourceAudioInputNode could not be created because of an unknown failure.

Remarks

AudioGraph.CreateMediaSourceAudioInputNode returns an IAsyncOperation object that returns a CreateMediaSourceAudioInputNodeResult on completion. This object exposes a Status property, containing a value from this enumeration, that indicates either that the operation was successful or the reason why the operation failed. The Node property provides a reference to the created MediaSourceAudioInputNode on success.

Applies to