AudioGraph.CreateMediaSourceAudioInputNodeAsync AudioGraph.CreateMediaSourceAudioInputNodeAsync AudioGraph.CreateMediaSourceAudioInputNodeAsync AudioGraph.CreateMediaSourceAudioInputNodeAsync AudioGraph.CreateMediaSourceAudioInputNodeAsync Method

Definition

Overloads

CreateMediaSourceAudioInputNodeAsync(MediaSource) CreateMediaSourceAudioInputNodeAsync(MediaSource) CreateMediaSourceAudioInputNodeAsync(MediaSource) CreateMediaSourceAudioInputNodeAsync(MediaSource) CreateMediaSourceAudioInputNodeAsync(MediaSource)

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

CreateMediaSourceAudioInputNodeAsync(MediaSource, AudioNodeEmitter) CreateMediaSourceAudioInputNodeAsync(MediaSource, AudioNodeEmitter) CreateMediaSourceAudioInputNodeAsync(MediaSource, AudioNodeEmitter) CreateMediaSourceAudioInputNodeAsync(MediaSource, AudioNodeEmitter) CreateMediaSourceAudioInputNodeAsync(MediaSource, AudioNodeEmitter)

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

CreateMediaSourceAudioInputNodeAsync(MediaSource) CreateMediaSourceAudioInputNodeAsync(MediaSource) CreateMediaSourceAudioInputNodeAsync(MediaSource) CreateMediaSourceAudioInputNodeAsync(MediaSource) CreateMediaSourceAudioInputNodeAsync(MediaSource)

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

public : IAsyncOperation<CreateMediaSourceAudioInputNodeResult> CreateMediaSourceAudioInputNodeAsync(MediaSource mediaSource)
IAsyncOperation<CreateMediaSourceAudioInputNodeResult> CreateMediaSourceAudioInputNodeAsync(MediaSource mediaSource) const;
public IAsyncOperation<CreateMediaSourceAudioInputNodeResult> CreateMediaSourceAudioInputNodeAsync(MediaSource mediaSource)
Public Function CreateMediaSourceAudioInputNodeAsync(mediaSource As MediaSource) As IAsyncOperation(Of CreateMediaSourceAudioInputNodeResult)
Windows.Media.Audio.AudioGraph.createMediaSourceAudioInputNodeAsync(mediaSource).done( /* Your success and error handlers */ );

Parameters

mediaSource
MediaSource 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.

Additional features and requirements

Device family
Windows 10, version 1803 (introduced v10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

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
Windows.Media.Audio.MediaSourceAudioInputNode T:Windows.Media.Core.MediaSource [Media items, playlists, and tracks](https://docs.microsoft.com/windows/uwp/audio-video-camera/media-playback-with-mediasource)

CreateMediaSourceAudioInputNodeAsync(MediaSource, AudioNodeEmitter) CreateMediaSourceAudioInputNodeAsync(MediaSource, AudioNodeEmitter) CreateMediaSourceAudioInputNodeAsync(MediaSource, AudioNodeEmitter) CreateMediaSourceAudioInputNodeAsync(MediaSource, AudioNodeEmitter) CreateMediaSourceAudioInputNodeAsync(MediaSource, AudioNodeEmitter)

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

public : IAsyncOperation<CreateMediaSourceAudioInputNodeResult> CreateMediaSourceAudioInputNodeAsync(MediaSource mediaSource, AudioNodeEmitter emitter)
IAsyncOperation<CreateMediaSourceAudioInputNodeResult> CreateMediaSourceAudioInputNodeAsync(MediaSource mediaSource, AudioNodeEmitter emitter) const;
public IAsyncOperation<CreateMediaSourceAudioInputNodeResult> CreateMediaSourceAudioInputNodeAsync(MediaSource mediaSource, AudioNodeEmitter emitter)
Public Function CreateMediaSourceAudioInputNodeAsync(mediaSource As MediaSource, emitter As AudioNodeEmitter) As IAsyncOperation(Of CreateMediaSourceAudioInputNodeResult)
Windows.Media.Audio.AudioGraph.createMediaSourceAudioInputNodeAsync(mediaSource, emitter).done( /* Your success and error handlers */ );

Parameters

mediaSource
MediaSource MediaSource MediaSource

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

emitter
AudioNodeEmitter AudioNodeEmitter 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.

Additional features and requirements

Device family
Windows 10, version 1803 (introduced v10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

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
Windows.Media.Audio.MediaSourceAudioInputNode T:Windows.Media.Core.MediaSource [Media items, playlists, and tracks](https://docs.microsoft.com/windows/uwp/audio-video-camera/media-playback-with-mediasource)