From ee3ea86891239debbf94c632f199d4f5c02045f1 Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Sat, 24 Sep 2022 10:24:49 +0200 Subject: [PATCH] Tie the instant queue to the listener --- src/Sound/soundmanager.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Sound/soundmanager.cxx b/src/Sound/soundmanager.cxx index b8a9fe7b4..2b8b4dcd8 100644 --- a/src/Sound/soundmanager.cxx +++ b/src/Sound/soundmanager.cxx @@ -232,6 +232,7 @@ bool FGSoundManager::playAudioSampleCommand(const SGPropertyNode * arg, SGProper // Add a special queue-name 'instant' which does not put samples // into a sample queue but plays them instantly. SGSampleGroup* sgr = find("NASAL instant queue", true); + sgr->tie_to_listener(); sgr->add(msg, foundPath.str()); sgr->play_once(foundPath.str()); }