#include <stdio.h>
#include <SDL.h>
-#include "sound_source.hpp"
+#include "openal_sound_source.hpp"
class SoundFile;
-class StreamSoundSource : public SoundSource
+class StreamSoundSource : public OpenALSoundSource
{
public:
StreamSoundSource();
{
return looping;
}
-
+
private:
static const size_t STREAMBUFFERSIZE = 1024 * 500;
static const size_t STREAMFRAGMENTS = 5;
- static const size_t STREAMFRAGMENTSIZE
+ static const size_t STREAMFRAGMENTSIZE
= STREAMBUFFERSIZE / STREAMFRAGMENTS;
bool fillBufferAndQueue(ALuint buffer);
};
#endif
-