X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Faudio%2Fstream_sound_source.hpp;h=aa621b39fb0044513470b2da5946ee4ccefd42eb;hb=051da28245f26cb1a073c764de235460e87ec64f;hp=de3b8658f72be418a77687b8a75fe19fe8bb8ca6;hpb=dd1879e08050a5c0dfab87901293e83f5ac0b320;p=supertux.git diff --git a/src/audio/stream_sound_source.hpp b/src/audio/stream_sound_source.hpp index de3b8658f..aa621b39f 100644 --- a/src/audio/stream_sound_source.hpp +++ b/src/audio/stream_sound_source.hpp @@ -46,17 +46,16 @@ public: 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); @@ -70,4 +69,3 @@ private: }; #endif -