X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Faudio%2Fstream_sound_source.hpp;h=aa621b39fb0044513470b2da5946ee4ccefd42eb;hb=051da28245f26cb1a073c764de235460e87ec64f;hp=18b2dc9799016784c8af145ba3426d621a42c554;hpb=c62711567861587107d124642db29e2674ee6533;p=supertux.git diff --git a/src/audio/stream_sound_source.hpp b/src/audio/stream_sound_source.hpp index 18b2dc979..aa621b39f 100644 --- a/src/audio/stream_sound_source.hpp +++ b/src/audio/stream_sound_source.hpp @@ -22,11 +22,11 @@ #include #include -#include "sound_source.hpp" +#include "openal_sound_source.hpp" class SoundFile; -class StreamSoundSource : public SoundSource +class StreamSoundSource : public OpenALSoundSource { public: StreamSoundSource(); @@ -51,11 +51,11 @@ public: { 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); @@ -69,4 +69,3 @@ private: }; #endif -