From 590ba7b9b579b97e34b51ab7e3460ebc85713343 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 28 Oct 2026 21:07:13 -0300 Subject: sketchbook: Zig 0.17, a Store on disk, requests, a scope (waveform, spectrum, spectrogram), audio codecs and fonts, web host --- vendor/codecs.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 vendor/codecs.h (limited to 'vendor/codecs.h') diff --git a/vendor/codecs.h b/vendor/codecs.h new file mode 100644 index 0000000..a4cb120 --- /dev/null +++ b/vendor/codecs.h @@ -0,0 +1,9 @@ +/* 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); -- cgit v1.3