Jaa


AudioGraph.CreateFileOutputNodeAsync Method

Definition

Overloads

CreateFileOutputNodeAsync(IStorageFile)

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

CreateFileOutputNodeAsync(IStorageFile, MediaEncodingProfile)

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

CreateFileOutputNodeAsync(IStorageFile)

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

public:
 virtual IAsyncOperation<CreateAudioFileOutputNodeResult ^> ^ CreateFileOutputNodeAsync(IStorageFile ^ file) = CreateFileOutputNodeAsync;
/// [Windows.Foundation.Metadata.Overload("CreateFileOutputNodeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<CreateAudioFileOutputNodeResult> CreateFileOutputNodeAsync(IStorageFile const& file);
[Windows.Foundation.Metadata.Overload("CreateFileOutputNodeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<CreateAudioFileOutputNodeResult> CreateFileOutputNodeAsync(IStorageFile file);
function createFileOutputNodeAsync(file)
Public Function CreateFileOutputNodeAsync (file As IStorageFile) As IAsyncOperation(Of CreateAudioFileOutputNodeResult)

Parameters

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

Attributes

Windows requirements

App 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

Applies to

CreateFileOutputNodeAsync(IStorageFile, MediaEncodingProfile)

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

public:
 virtual IAsyncOperation<CreateAudioFileOutputNodeResult ^> ^ CreateFileOutputNodeAsync(IStorageFile ^ file, MediaEncodingProfile ^ fileEncodingProfile) = CreateFileOutputNodeAsync;
/// [Windows.Foundation.Metadata.Overload("CreateFileOutputNodeWithFileProfileAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<CreateAudioFileOutputNodeResult> CreateFileOutputNodeAsync(IStorageFile const& file, MediaEncodingProfile const& fileEncodingProfile);
[Windows.Foundation.Metadata.Overload("CreateFileOutputNodeWithFileProfileAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<CreateAudioFileOutputNodeResult> CreateFileOutputNodeAsync(IStorageFile file, MediaEncodingProfile fileEncodingProfile);
function createFileOutputNodeAsync(file, fileEncodingProfile)
Public Function CreateFileOutputNodeAsync (file As IStorageFile, fileEncodingProfile As MediaEncodingProfile) As IAsyncOperation(Of CreateAudioFileOutputNodeResult)

Parameters

file
IStorageFile

A StorageFile to which audio data is written.

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

Attributes

Windows requirements

App 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

Applies to