Skip to content

IOFileConversion.ConvertToWav Method ​

Definition ​

Converts a file to WAV format with an optional custom sample rate.

c#
public static WavFile ConvertToWav(IOFile source, uint sampleRateHz = 44100);

View source

Parameters ​

NameTypeDescription
sourceIOFileThe source file to convert.
sampleRateHzUInt32The sample rate in Hz.

Returns ​

WavFile

The converted WAV file.