dhewm3/neo/sound/stbvorbis_impl.c
Daniel Gibson 5d3f143220 Detect endianess in CMakeLists.txt, get rid of most SDL_endian.h uses
.. except where SDL_Swap* is actually used (idlib/Lib.cpp).
Otherwise #if D3_IS_BIG_ENDIAN suffices, (NOT #ifdef, it's always set,
but to either 0 or 1!)
2024-10-07 03:15:50 +02:00

13 lines
562 B
C

// this source file includes the implementation of stb_vorbis
// having it in a separate source file allows optimizing it in debug builds (for faster load times)
// without hurting the debugability of the source files it's used in
// (I'm doing this instead of renaming stb_vorbis.h to stb_vorbis.c so the configuration
// like STB_VORBIS_BIG_ENDIAN etc can be done here in code)
#if D3_IS_BIG_ENDIAN
#define STB_VORBIS_BIG_ENDIAN
#endif
#define STB_VORBIS_NO_STDIO
#define STB_VORBIS_NO_PUSHDATA_API // we're using the pulldata API
#include "stb_vorbis.h"