X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Faudio%2Fstream_sound_source.hpp;h=aa621b39fb0044513470b2da5946ee4ccefd42eb;hb=6b0c80bde84af0bf9323320d99f2fccd7c9eeedd;hp=25c8cd81af0f2e4bf3b2cd3656a822d8031b90c6;hpb=07ddaed2a657e4d2a3d038fed223fc5827159caf;p=supertux.git diff --git a/src/audio/stream_sound_source.hpp b/src/audio/stream_sound_source.hpp index 25c8cd81a..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); @@ -63,10 +63,9 @@ private: ALuint buffers[STREAMFRAGMENTS]; FadeState fade_state; - Uint32 fade_start_ticks; + float fade_start_time; float fade_time; bool looping; }; #endif -