Companion

Holds the factories that decode audio files.

Functions

Link copied to clipboard

Decodes a WAV or Ogg Vorbis file held in bytes, recognized by its header, into float samples at the file's own sample rate.

Link copied to clipboard

Decodes a WAV or Ogg Vorbis file held in bytes, recognized by its header, into float samples at the file's own sample rate, or returns null when bytes is empty, is neither a WAV nor an Ogg Vorbis file, is corrupt, or is too long to hold in one array.