From: ehofman Date: Mon, 5 Oct 2009 13:42:12 +0000 (+0000) Subject: default listener (master volume) default to 0.0 to save some ugly code in FlightGear X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6b0ab9a49a5d900b92a6ca052a24232fd547511b;p=simgear.git default listener (master volume) default to 0.0 to save some ugly code in FlightGear --- diff --git a/simgear/sound/soundmgr_openal.cxx b/simgear/sound/soundmgr_openal.cxx index ac2d8352..b204aa13 100644 --- a/simgear/sound/soundmgr_openal.cxx +++ b/simgear/sound/soundmgr_openal.cxx @@ -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); } }