Skip to content

WavFileConverter<TSource>.Convert Method ​

Overloads ​

NameDescription
Convert(TSource)Converts the given source file to the target format.
Convert(IOFile, UInt32)Converts the specified source file to a WAV file with the given sample rate.
Convert(TSource, UInt32)Converts the specified strongly typed source file to a WAV file with the given sample rate.

Convert(TSource) ​

Converts the given source file to the target format.

c#
public sealed override WavFile Convert(TSource source);

View source

Parameters ​

NameTypeDescription
sourceTSourceThe source file to convert.

Returns ​

WavFile

The converted file.

Convert(IOFile, UInt32) ​

Converts the specified source file to a WAV file with the given sample rate.

c#
public new WavFile Convert(IOFile source, uint sampleRateHz = 44100);

View source

Parameters ​

NameTypeDescription
sourceIOFileThe source file to convert.
sampleRateHzUInt32The sample rate in Hz for the output WAV file.

Returns ​

WavFile

The converted WAV file.

Convert(TSource, UInt32) ​

Converts the specified strongly typed source file to a WAV file with the given sample rate.

c#
public new abstract WavFile Convert(TSource source, uint sampleRateHz = 44100);

Parameters ​

NameTypeDescription
sourceTSourceThe source file to convert.
sampleRateHzUInt32The sample rate in Hz for the output WAV file.

Returns ​

WavFile

The converted WAV file.