Table of Contents

Class WavReader

Namespace
PluginUI.Dsp
Assembly
PluginUI.dll

Minimal WAV (RIFF / RIFX-free) reader for previews in WaveformView: PCM 8, 16, 24 and 32 bit, IEEE float 32 and 64 bit, WAVE_FORMAT_EXTENSIBLE, any channel count. Not meant for the audio thread (allocates the decoded data).

public static class WavReader
Inheritance
WavReader
Inherited Members

Methods

Read(ReadOnlySpan<byte>)

Decodes WAV bytes.

public static AudioData Read(ReadOnlySpan<byte> data)

Parameters

data ReadOnlySpan<byte>

The complete file content.

Returns

AudioData

The decoded audio.

Exceptions

InvalidDataException

The data is not a supported WAV file.

Read(string)

Reads a WAV file.

public static AudioData Read(string path)

Parameters

path string

File path.

Returns

AudioData

The decoded audio.

Exceptions

InvalidDataException

The file is not a supported WAV file.

IOException

The file cannot be read.