]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/fg_commands.cxx
Reset: clear effects cache
[flightgear.git] / src / Main / fg_commands.cxx
index 6ae72a99622eb6ee7a6f4f6a7e057a3007673119..4c0f580b0d87051c9efe8a2927cc25835ea0a2d5 100644 (file)
@@ -1164,10 +1164,11 @@ do_play_audio_sample (const SGPropertyNode * arg)
     float volume = arg->getFloatValue("volume");
     // cout << "playing " << path << " / " << file << endl;
     try {
-        static FGSampleQueue *queue = 0;
+        FGSampleQueue *queue = globals->get_chatter_queue();
         if ( !queue ) {
-           queue = new FGSampleQueue(smgr, "chatter");
-           queue->tie_to_listener();
+            queue = new FGSampleQueue(smgr, "chatter");
+            queue->tie_to_listener();
+            globals->set_chatter_queue(queue);
         }
 
         SGSoundSample *msg = new SGSoundSample(file.c_str(), path);