Jaa


AudioGraph.CreateMediaSourceAudioInputNodeAsync Method

Definition

Overloads

CreateMediaSourceAudioInputNodeAsync(MediaSource)

Creates a MediaSourceAudioInputNode that inputs audio data into the audio graph from the provided MediaSource object.

CreateMediaSourceAudioInputNodeAsync(MediaSource, AudioNodeEmitter)

Creates a spatial audio-enabled MediaSourceAudioInputNode that inputs audio data into the audio graph from the provided MediaSource object.

CreateMediaSourceAudioInputNodeAsync(MediaSource)

Creates a MediaSourceAudioInputNode that inputs audio data into the audio graph from the provided MediaSource object.

public:
 virtual IAsyncOperation<CreateMediaSourceAudioInputNodeResult ^> ^ CreateMediaSourceAudioInputNodeAsync(MediaSource ^ mediaSource) = CreateMediaSourceAudioInputNodeAsync;
/// [Windows.Foundation.Metadata.Overload("CreateMediaSourceAudioInputNodeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<CreateMediaSourceAudioInputNodeResult> CreateMediaSourceAudioInputNodeAsync(MediaSource const& mediaSource);
[Windows.Foundation.Metadata.Overload("CreateMediaSourceAudioInputNodeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<CreateMediaSourceAudioInputNodeResult> CreateMediaSourceAudioInputNodeAsync(MediaSource mediaSource);
function createMediaSourceAudioInputNodeAsync(mediaSource)
Public Function CreateMediaSourceAudioInputNodeAsync (mediaSource As MediaSource) As IAsyncOperation(Of CreateMediaSourceAudioInputNodeResult)

Parameters

mediaSource
MediaSource

The MediaSource object from which audio data is input into the audio graph.

Returns

An IAsyncOperation object that returns a CreateMediaSourceAudioInputNodeResult on completion. This object exposes a Status property, that indicates either that the operation was successful or the reason why the operation failed. The Node property provides a reference to the created input node on success.

Attributes

Windows requirements

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

Remarks

The MediaSource class provides a common representation of media content from different kinds of sources, such as files or network streams. For more information on working with MediaSource, see Media items, playlists, and tracks.

See also

Applies to

CreateMediaSourceAudioInputNodeAsync(MediaSource, AudioNodeEmitter)

Creates a spatial audio-enabled MediaSourceAudioInputNode that inputs audio data into the audio graph from the provided MediaSource object.

public:
 virtual IAsyncOperation<CreateMediaSourceAudioInputNodeResult ^> ^ CreateMediaSourceAudioInputNodeAsync(MediaSource ^ mediaSource, AudioNodeEmitter ^ emitter) = CreateMediaSourceAudioInputNodeAsync;
/// [Windows.Foundation.Metadata.Overload("CreateMediaSourceAudioInputNodeWithEmitterAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<CreateMediaSourceAudioInputNodeResult> CreateMediaSourceAudioInputNodeAsync(MediaSource const& mediaSource, AudioNodeEmitter const& emitter);
[Windows.Foundation.Metadata.Overload("CreateMediaSourceAudioInputNodeWithEmitterAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<CreateMediaSourceAudioInputNodeResult> CreateMediaSourceAudioInputNodeAsync(MediaSource mediaSource, AudioNodeEmitter emitter);
function createMediaSourceAudioInputNodeAsync(mediaSource, emitter)
Public Function CreateMediaSourceAudioInputNodeAsync (mediaSource As MediaSource, emitter As AudioNodeEmitter) As IAsyncOperation(Of CreateMediaSourceAudioInputNodeResult)

Parameters

mediaSource
MediaSource

The MediaSource object from which audio data is input into the audio graph.

emitter
AudioNodeEmitter

An AudioNodeEmitter object that describes the position and other physical characteristics of the emitter from which the node's audio is emitted when spatial audio processing is used.

Returns

An IAsyncOperation object that returns a CreateMediaSourceAudioInputNodeResult on completion. This object exposes a Status property, that indicates either that the operation was successful or the reason why the operation failed. The Node property provides a reference to the created input node on success.

Attributes

Windows requirements

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

Remarks

The MediaSource class provides a common representation of media content from different kinds of sources, such as files or network streams. For more information on working with MediaSource, see Media items, playlists, and tracks.

See also

Applies to