Browse Source

Commit patch by cfsworks to properly mark OpenAL sounds as inactive when they are created while the manager is inactive

rdb 11 years ago
parent
commit
28ba81f82d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/audiotraits/openalAudioSound.cxx

+ 1 - 1
panda/src/audiotraits/openalAudioSound.cxx

@@ -64,7 +64,7 @@ OpenALAudioSound(OpenALAudioManager* manager,
   _start_time(0.0),
   _start_time(0.0),
   _current_time(0.0),
   _current_time(0.0),
   _basename(movie->get_filename().get_basename()),
   _basename(movie->get_filename().get_basename()),
-  _active(true),
+  _active(manager->get_active()),
   _paused(false)
   _paused(false)
 {
 {
   _location[0] = 0.0f;
   _location[0] = 0.0f;