Jaa


AudioGraph.CreateFileInputNodeAsync Method

Definition

Overloads

CreateFileInputNodeAsync(IStorageFile)

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

CreateFileInputNodeAsync(IStorageFile, AudioNodeEmitter)

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

CreateFileInputNodeAsync(IStorageFile)

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

public:
 virtual IAsyncOperation<CreateAudioFileInputNodeResult ^> ^ CreateFileInputNodeAsync(IStorageFile ^ file) = CreateFileInputNodeAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<CreateAudioFileInputNodeResult> CreateFileInputNodeAsync(IStorageFile const& file);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<CreateAudioFileInputNodeResult> CreateFileInputNodeAsync(IStorageFile file);
function createFileInputNodeAsync(file)
Public Function CreateFileInputNodeAsync (file As IStorageFile) As IAsyncOperation(Of CreateAudioFileInputNodeResult)

Parameters

file
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.

Attributes

Windows requirements

App capabilities
backgroundMediaRecording

Applies to

CreateFileInputNodeAsync(IStorageFile, AudioNodeEmitter)

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

public:
 virtual IAsyncOperation<CreateAudioFileInputNodeResult ^> ^ CreateFileInputNodeAsync(IStorageFile ^ file, AudioNodeEmitter ^ emitter) = CreateFileInputNodeAsync;
/// [Windows.Foundation.Metadata.Overload("CreateFileInputNodeWithEmitterAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<CreateAudioFileInputNodeResult> CreateFileInputNodeAsync(IStorageFile const& file, AudioNodeEmitter const& emitter);
[Windows.Foundation.Metadata.Overload("CreateFileInputNodeWithEmitterAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<CreateAudioFileInputNodeResult> CreateFileInputNodeAsync(IStorageFile file, AudioNodeEmitter emitter);
function createFileInputNodeAsync(file, emitter)
Public Function CreateFileInputNodeAsync (file As IStorageFile, emitter As AudioNodeEmitter) As IAsyncOperation(Of CreateAudioFileInputNodeResult)

Parameters

file
IStorageFile

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

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

Attributes

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)
App capabilities
backgroundMediaRecording

Remarks

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

See also

Applies to