]> git.mxchange.org Git - flightgear.git/blobdiff - src/Sound/sample_queue.cxx
toggle fullscreen: also adapt GUI plane when resizing
[flightgear.git] / src / Sound / sample_queue.cxx
index ac56c9b25320698c47cf12fe85e6f04b691d5c11..ab4c213b9a77c8eed0343f66292eb989917903a6 100644 (file)
@@ -36,7 +36,7 @@
 #include <simgear/sound/soundmgr_openal.hxx>
 #include <simgear/sound/sample_openal.hxx>
 
-FGSampleQueue::FGSampleQueue ( SGSoundMgr *smgr, const string &refname ) :
+FGSampleQueue::FGSampleQueue ( SGSoundMgr *smgr, const std::string &refname ) :
     last_enabled( true ),
     last_volume( 0.0 ),
     _enabled( fgGetNode("/sim/sound/chatter/enabled", true) ),
@@ -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);
 }
 
 
@@ -81,7 +79,7 @@ FGSampleQueue::update (double dt)
         }
 
         // process message queue
-        const string msgid = "Sequential Audio Message";
+        const std::string msgid = "Sequential Audio Message";
         bool now_playing = false;
         if ( exists( msgid ) ) {
             now_playing = is_playing( msgid );