- attempt to improve openal's buffer underruns

This commit is contained in:
Mark Vejvoda 2011-01-09 09:46:10 +00:00
parent 2d6203bd21
commit 6c5163d1e9

View File

@ -13,10 +13,10 @@
#include "platform_common.h" #include "platform_common.h"
#include <SDL.h> #include <SDL.h>
#ifdef __APPLE__ #ifdef __APPLE__
#include <OpenAL/alc.h> #include <OpenAL/alc.h>
#include <OpenAL/al.h> #include <OpenAL/al.h>
#else #else
#include <AL/alc.h> #include <AL/alc.h>
#include <AL/al.h> #include <AL/al.h>
#endif #endif
#include <vector> #include <vector>
@ -69,7 +69,7 @@ public:
protected: protected:
friend class SoundPlayerOpenAL; friend class SoundPlayerOpenAL;
static const size_t STREAMBUFFERSIZE = 1024 * 500; static const size_t STREAMBUFFERSIZE = 1024 * 500;
static const size_t STREAMFRAGMENTS = 5; static const size_t STREAMFRAGMENTS = 10;
static const size_t STREAMFRAGMENTSIZE static const size_t STREAMFRAGMENTSIZE
= STREAMBUFFERSIZE / STREAMFRAGMENTS; = STREAMBUFFERSIZE / STREAMFRAGMENTS;