]> git.mxchange.org Git - simgear.git/commitdiff
add alcSuspendContext and alcProcessContext again to prevent sound artifacts on hardw...
authorehofman <ehofman>
Sun, 6 Dec 2009 09:56:01 +0000 (09:56 +0000)
committerTim Moore <timoore@redhat.com>
Sun, 6 Dec 2009 22:55:08 +0000 (23:55 +0100)
simgear/sound/soundmgr_openal.cxx

index 6100dfcf78d37c30e5990f9227f5a1e5167ec287..618d44f32f85b97fd477ee16aa1c3be060a66b89 100644 (file)
@@ -274,6 +274,8 @@ void SGSoundMgr::unbind ()
 // run the audio scheduler
 void SGSoundMgr::update( double dt ) {
     if (_active) {
+        alcSuspendContext(_context);
+
         if (_changed) {
             update_pos_and_orientation();
         }
@@ -310,6 +312,8 @@ if (isNaN(_velocity.data())) printf("NaN in listener velocity\n");
             testForALError("update");
             _changed = false;
         }
+
+        alcProcessContext(_context);
     }
 }