AudioGraph.CreateFileOutputNodeAsync AudioGraph.CreateFileOutputNodeAsync AudioGraph.CreateFileOutputNodeAsync AudioGraph.CreateFileOutputNodeAsync AudioGraph.CreateFileOutputNodeAsync Method

Definition

Overloads

CreateFileOutputNodeAsync(IStorageFile) CreateFileOutputNodeAsync(IStorageFile) CreateFileOutputNodeAsync(IStorageFile) CreateFileOutputNodeAsync(IStorageFile) CreateFileOutputNodeAsync(IStorageFile)

Creates a new AudioFileOutuputNode that outputs audio data from the audio graph to the specified storage file.

CreateFileOutputNodeAsync(IStorageFile, MediaEncodingProfile) CreateFileOutputNodeAsync(IStorageFile, MediaEncodingProfile) CreateFileOutputNodeAsync(IStorageFile, MediaEncodingProfile) CreateFileOutputNodeAsync(IStorageFile, MediaEncodingProfile) CreateFileOutputNodeAsync(IStorageFile, MediaEncodingProfile)

Creates a new AudioFileOutuputNode that outputs audio data from the audio graph to the specified storage file.

CreateFileOutputNodeAsync(IStorageFile) CreateFileOutputNodeAsync(IStorageFile) CreateFileOutputNodeAsync(IStorageFile) CreateFileOutputNodeAsync(IStorageFile) CreateFileOutputNodeAsync(IStorageFile)

Creates a new AudioFileOutuputNode that outputs audio data from the audio graph to the specified storage file.

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

Parameters

file
IStorageFile IStorageFile IStorageFile

A StorageFile to which audio data is written.

Returns

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

Additional features and requirements

Capabilities
backgroundMediaRecording

Remarks

The file output node created by this method defaults to a WAV file format with the same AudioEncodingProperties properties as the AudioGraph to which it belongs. To create a file output node with custom encoding properties use the CreateFileOutputNodeAsync(IStorageFile, MediaEncodingProfile) overload.

See also

CreateFileOutputNodeAsync(IStorageFile, MediaEncodingProfile) CreateFileOutputNodeAsync(IStorageFile, MediaEncodingProfile) CreateFileOutputNodeAsync(IStorageFile, MediaEncodingProfile) CreateFileOutputNodeAsync(IStorageFile, MediaEncodingProfile) CreateFileOutputNodeAsync(IStorageFile, MediaEncodingProfile)

Creates a new AudioFileOutuputNode that outputs audio data from the audio graph to the specified storage file.

public : IAsyncOperation<CreateAudioFileOutputNodeResult> CreateFileOutputNodeAsync(IStorageFile file, MediaEncodingProfile fileEncodingProfile)
IAsyncOperation<CreateAudioFileOutputNodeResult> CreateFileOutputNodeAsync(IStorageFile file, MediaEncodingProfile fileEncodingProfile) const;
public IAsyncOperation<CreateAudioFileOutputNodeResult> CreateFileOutputNodeAsync(IStorageFile file, MediaEncodingProfile fileEncodingProfile)
Public Function CreateFileOutputNodeAsync(file As IStorageFile, fileEncodingProfile As MediaEncodingProfile) As IAsyncOperation(Of CreateAudioFileOutputNodeResult)
Windows.Media.Audio.AudioGraph.createFileOutputNodeAsync(file, fileEncodingProfile).done( /* Your success and error handlers */ );

Parameters

file
IStorageFile IStorageFile IStorageFile

A StorageFile to which audio data is written.

fileEncodingProfile
MediaEncodingProfile MediaEncodingProfile MediaEncodingProfile

A MediaEncodingProfile that determines the format of the output file.

Returns

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

Additional features and requirements

Capabilities
backgroundMediaRecording

Remarks

If the file parameter is null, the encoding profile defaults to a WAV file format with the same AudioEncodingProperties as the AudioGraph to which it belongs.

See also