]> git.mxchange.org Git - flightgear.git/commitdiff
#545: Fix ATC chatter sound settings being ignored
authorThorstenB <brehmt@gmail.com>
Tue, 27 Dec 2011 12:04:09 +0000 (13:04 +0100)
committerThorstenB <brehmt@gmail.com>
Tue, 27 Dec 2011 12:04:09 +0000 (13:04 +0100)
FGSampleQueue is initialized at run-time, long after preferences are
loaded from the persistent files - so it should not reset anything.

src/Sound/sample_queue.cxx

index ac56c9b25320698c47cf12fe85e6f04b691d5c11..fd2931ef6c5ef01be6a04085c0e488d5143588d5 100644 (file)
@@ -45,8 +45,6 @@ FGSampleQueue::FGSampleQueue ( SGSoundMgr *smgr, const string &refname ) :
     SGSampleGroup::_smgr = smgr;
     SGSampleGroup::_smgr->add(this, refname);
     SGSampleGroup::_refname = refname;
-    _enabled->setBoolValue(true);
-    _volume->setFloatValue(1.0);
 }