]> git.mxchange.org Git - simgear.git/commitdiff
default listener (master volume) default to 0.0 to save some ugly code in FlightGear
authorehofman <ehofman>
Mon, 5 Oct 2009 13:42:12 +0000 (13:42 +0000)
committerTim Moore <timoore@redhat.com>
Tue, 6 Oct 2009 05:22:06 +0000 (07:22 +0200)
simgear/sound/soundmgr_openal.cxx

index ac2d8352d8fba8a7d8dc0d546a7bb848726e6441..b204aa13fbc4418cf52ad40fbad452a29147c68d 100644 (file)
@@ -55,7 +55,7 @@ int SGSoundMgr::_alut_init = 0;
 SGSoundMgr::SGSoundMgr() :
     _working(false),
     _changed(true),
-    _volume(0.5),
+    _volume(0.0),
     _device(NULL),
     _context(NULL),
     _listener_pos(SGVec3d::zeros().data()),
@@ -204,6 +204,8 @@ void SGSoundMgr::update( double dt )
 // run the audio scheduler
 void SGSoundMgr::update_late( double dt ) {
     if (_working) {
+        // alcSuspendContext(_context);
+
         sample_group_map_iterator sample_grp_current = _sample_groups.begin();
         sample_group_map_iterator sample_grp_end = _sample_groups.end();
         for ( ; sample_grp_current != sample_grp_end; ++sample_grp_current ) {
@@ -220,6 +222,7 @@ void SGSoundMgr::update_late( double dt ) {
             testForALError("update");
             _changed = false;
         }
+        // alcProcessContext(_context);
     }
 }