Преглед изворни кода

Merge pull request #448 from dgough/next

Changed AudioSource to not loop by default
Sean Paul Taylor пре 13 година
родитељ
комит
76809fdbe7
2 измењених фајлова са 2 додато и 1 уклоњено
  1. 1 0
      CHANGES.md
  2. 1 1
      gameplay/src/AudioSource.cpp

+ 1 - 0
CHANGES.md

@@ -15,6 +15,7 @@
 - Fixes Lua print logging.
 - Fixes Lua errors to be treated as runtime warnings.
 - Fixes setVertexData to pointers instead of constant data.
+- Fixed AudioSource so that it doesn't loop by default.
 
 ## v1.4.0
 

+ 1 - 1
gameplay/src/AudioSource.cpp

@@ -10,7 +10,7 @@ namespace gameplay
 {
 
 AudioSource::AudioSource(AudioBuffer* buffer, ALuint source) 
-    : _alSource(source), _buffer(buffer), _looped(true), _gain(1.0f), _pitch(1.0f), _node(NULL)
+    : _alSource(source), _buffer(buffer), _looped(false), _gain(1.0f), _pitch(1.0f), _node(NULL)
 {
     GP_ASSERT(buffer);
     AL_CHECK( alSourcei(_alSource, AL_BUFFER, buffer->_alBuffer) );