瀏覽代碼

Changed AudioSource so that sounds do not loop by default.

Darryl Gough 13 年之前
父節點
當前提交
dcd4589c49
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gameplay/src/AudioSource.cpp

+ 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) );