/* Sound decoding for the host, from single-file libraries: dr_wav, dr_flac * and stb_vorbis, compiled in codecs.c. */ #include #include /* WAV, FLAC or Ogg Vorbis bytes to interleaved f32, chosen by content. Null * when they do not decode; otherwise release with sketchbook_free_audio. */ float *sketchbook_decode_audio(const void *data, size_t size, uint32_t *channels, uint32_t *rate, uint64_t *frames); void sketchbook_free_audio(float *samples);