1 #define STB_IMAGE_STATIC
2 #define STB_IMAGE_IMPLEMENTATION
5 #define STB_VORBIS_HEADER_ONLY
6 #include "stb_vorbis.c"
9 extern void stb_vorbis_dumpmem(void);
12 int main(int argc
, char **argv
)
15 unsigned char *mem
= stb_fileu("c:/x/sketch008.ogg", &memlen
);
18 int samples
= stb_vorbis_decode_memory(mem
, memlen
, &chan
, &samplerate
, &output
);
19 stb_filewrite("c:/x/sketch008.raw", output
, samples
*4);