Search guides and the APICtrl K
  1. API reference
  2. Files and codecs

wav.h

WAV files.

#include <sonore/wav.h>
  • 1type
  • 3other declarations
On this page

Design notes

A reader and a writer for the one format that matters in practice: RIFF/WAVE carrying 16-bit PCM, 24-bit PCM or 32-bit float. That covers what users actually drop on a plugin (impulse responses, samples) and what a standalone build renders out. Compressed formats are somebody else's job: the OS ships codecs, and a plugin that decodes MP3 itself is carrying liability, not value.

Offline-only by design: these functions allocate and do file IO, so they belong in prepare()-time code and tools, never in process().

Types 1

Decoded audio: interleaved floats, -1..1, plus the facts about them.

Functions 2

Constants 1

↑↓ to move↵ to openEvery public name in the headers, and every guide