search for: oggmalloc

Displaying 1 result from an estimated 1 matches for "oggmalloc".

Did you mean: ogg_malloc
2001 Nov 09
0
Re: Game Programming Gems 3
...opers will need a "core" ogg decoder which has no dependencies on any standard library. Ideally I'd like to see a separate file with the library functions in it so I can rewrite them as needed. eg. <file "oggstd.c"> double oggSin(double d) { return sin(d); } void* oggMalloc(size_t s) { return malloc(s); } The decoder would then call oggSin() instead of sin(), etc., and people could patch it as needed. If this is done then I'd also suggest making a pure decoder which contains no code to read from files, just the existing callback mechanism to provide the data...