AudioGraph.CreateFileInputNodeAsync AudioGraph.CreateFileInputNodeAsync AudioGraph.CreateFileInputNodeAsync AudioGraph.CreateFileInputNodeAsync AudioGraph.CreateFileInputNodeAsync Method

Definition

Overloads

CreateFileInputNodeAsync(IStorageFile) CreateFileInputNodeAsync(IStorageFile) CreateFileInputNodeAsync(IStorageFile) CreateFileInputNodeAsync(IStorageFile) CreateFileInputNodeAsync(IStorageFile)

Creates an AudioFileInputNode that inputs audio data into the audio graph from a storage file.

CreateFileInputNodeAsync(IStorageFile, AudioNodeEmitter) CreateFileInputNodeAsync(IStorageFile, AudioNodeEmitter) CreateFileInputNodeAsync(IStorageFile, AudioNodeEmitter) CreateFileInputNodeAsync(IStorageFile, AudioNodeEmitter) CreateFileInputNodeAsync(IStorageFile, AudioNodeEmitter)

Creates a spatial audio-enabled AudioFileInputNode that inputs audio data into the audio graph from a storage file.

CreateFileInputNodeAsync(IStorageFile) CreateFileInputNodeAsync(IStorageFile) CreateFileInputNodeAsync(IStorageFile) CreateFileInputNodeAsync(IStorageFile) CreateFileInputNodeAsync(IStorageFile)

Creates an AudioFileInputNode that inputs audio data into the audio graph from a storage file.

public : IAsyncOperation<CreateAudioFileInputNodeResult> CreateFileInputNodeAsync(IStorageFile file)
IAsyncOperation<CreateAudioFileInputNodeResult> CreateFileInputNodeAsync(IStorageFile file) const;
public IAsyncOperation<CreateAudioFileInputNodeResult> CreateFileInputNodeAsync(IStorageFile file)
Public Function CreateFileInputNodeAsync(file As IStorageFile) As IAsyncOperation(Of CreateAudioFileInputNodeResult)
Windows.Media.Audio.AudioGraph.createFileInputNodeAsync(file).done( /* Your success and error handlers */ );

Parameters

file
IStorageFile IStorageFile IStorageFile

A StorageFile object representing the audio file associated with the input node.

Returns

An asynchronous operation that returns a CreateAudioFileInputNodeResult on completion. This object exposes a Status property, that indicates either that the operation was successful or the reason why the operation failed. The FileInputNode property provides a reference to the created output node on success.

Additional features and requirements

Capabilities
backgroundMediaRecording

CreateFileInputNodeAsync(IStorageFile, AudioNodeEmitter) CreateFileInputNodeAsync(IStorageFile, AudioNodeEmitter) CreateFileInputNodeAsync(IStorageFile, AudioNodeEmitter) CreateFileInputNodeAsync(IStorageFile, AudioNodeEmitter) CreateFileInputNodeAsync(IStorageFile, AudioNodeEmitter)

Creates a spatial audio-enabled AudioFileInputNode that inputs audio data into the audio graph from a storage file.

public : IAsyncOperation<CreateAudioFileInputNodeResult> CreateFileInputNodeAsync(IStorageFile file, AudioNodeEmitter emitter)
IAsyncOperation<CreateAudioFileInputNodeResult> CreateFileInputNodeAsync(IStorageFile file, AudioNodeEmitter emitter) const;
public IAsyncOperation<CreateAudioFileInputNodeResult> CreateFileInputNodeAsync(IStorageFile file, AudioNodeEmitter emitter)
Public Function CreateFileInputNodeAsync(file As IStorageFile, emitter As AudioNodeEmitter) As IAsyncOperation(Of CreateAudioFileInputNodeResult)
Windows.Media.Audio.AudioGraph.createFileInputNodeAsync(file, emitter).done( /* Your success and error handlers */ );

Parameters

file
IStorageFile IStorageFile IStorageFile

A IStorageFile object representing the audio file associated with the input node.

emitter
AudioNodeEmitter AudioNodeEmitter AudioNodeEmitter

An 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 asynchronous operation that returns a CreateAudioFileInputNodeResult on completion. This object exposes a Status property, that indicates either that the operation was successful or the reason why the operation failed. The FileInputNode property provides a reference to the created input node on success.

Additional features and requirements

Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)
Capabilities
backgroundMediaRecording

Remarks

To create a file input node with an emitter, the audio file must be encoded in mono at 48kHz.

See also