1
0
forked from 0ad/0ad
0ad/source/lib/res/ogghack.h
janwas f144aa0686 as per meeting today, disabled use of OpenAL ogg extension; wrote a quick, ugly, no-good hack to decode OGG files 'manually' (using vorbis)
(it doesn't stream, it loads the whole thing into memory - baad)
but the steaming pile seems to work! all is good ;)

This was SVN commit r1250.
2004-10-16 20:54:24 +00:00

9 lines
206 B
C
Executable File

void* ogg_create();
void ogg_give_raw(void* o, void* p, size_t size);
void ogg_open(void* o, ALenum& fmt, ALsizei& freq);
size_t ogg_read(void* o, void* buf, size_t max_size);
void ogg_release(void* o);