diff --git a/polymer/eduke32/source/jfaud_sounds.cpp b/polymer/eduke32/source/jfaud_sounds.cpp index e92d60b64..89d8627cc 100644 --- a/polymer/eduke32/source/jfaud_sounds.cpp +++ b/polymer/eduke32/source/jfaud_sounds.cpp @@ -21,12 +21,6 @@ * Prepared for public release: 03/21/2003 - Charlie Wiederhold, 3D Realms */ -#ifdef __APPLE__ -# include -#else -# include "jfaud.hpp" -#endif - #include "types.h" #include "duke3d.h" extern "C" { @@ -37,6 +31,13 @@ extern "C" { long numenvsnds; } +typedef uint64 uint64_t; +#ifdef __APPLE__ +# include +#else +# include "jfaud.hpp" +#endif + #define SOUNDM_LOOP 1 #define SOUNDM_MSFX 2 #define SOUNDM_DUKE 4 @@ -195,6 +196,8 @@ void SoundStartup(void) jfaud = NULL; return; } + + jfaud->SetCacheSize(1048576,1048576/2); chans = new SoundChannel[NumVoices]; if (!chans) {