void set_looping(bool looping)
{
this->looping = looping;
- alSourcei(source, AL_LOOPING, looping ? AL_TRUE : AL_FALSE);
}
bool get_looping() const
{
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
-