projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make OpenAL header inclusion more portable
[supertux.git]
/
src
/
audio
/
stream_sound_source.hpp
diff --git
a/src/audio/stream_sound_source.hpp
b/src/audio/stream_sound_source.hpp
index
de3b865
..
aa621b3
100644
(file)
--- 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;
void set_looping(bool looping)
{
this->looping = looping;
- alSourcei(source, AL_LOOPING, looping ? AL_TRUE : AL_FALSE);
}
bool get_looping() const
{
return looping;
}
}
bool get_looping() const
{
return looping;
}
-
+
private:
static const size_t STREAMBUFFERSIZE = 1024 * 500;
static const size_t STREAMFRAGMENTS = 5;
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);
= STREAMBUFFERSIZE / STREAMFRAGMENTS;
bool fillBufferAndQueue(ALuint buffer);
@@
-70,4
+69,3
@@
private:
};
#endif
};
#endif
-