blob: a4cb120cd1891243d61b267fafe9ca60ee800a01 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
/* Sound decoding for the host, from single-file libraries: dr_wav, dr_flac
* and stb_vorbis, compiled in codecs.c. */
#include <stddef.h>
#include <stdint.h>
/* 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);
|