]> git.mxchange.org Git - simgear.git/commitdiff
Initialize volume to inaudiable at startup.
authorehofman <ehofman>
Thu, 16 Dec 2004 13:15:13 +0000 (13:15 +0000)
committerehofman <ehofman>
Thu, 16 Dec 2004 13:15:13 +0000 (13:15 +0000)
simgear/sound/soundmgr_openal.cxx

index 2d321bdf62fcd308bcd41ee27563208f429a39b0..c438a6531b3d29a208a5a2027ba9ea53e3c7f8dc 100644 (file)
@@ -97,6 +97,7 @@ SGSoundMgr::SGSoundMgr() {
     listener_ori[4] = 1.0;
     listener_ori[5] = 0.0;
 
+    alListenerf( AL_GAIN, 0.0f );
     alListenerfv( AL_POSITION, listener_pos );
     alListenerfv( AL_VELOCITY, listener_vel );
     alListenerfv( AL_ORIENTATION, listener_ori );