1
0
Fork 0

Tie the instant queue to the listener

This commit is contained in:
Erik Hofman 2022-09-24 10:24:49 +02:00
parent 190d393cd2
commit ee3ea86891

View file

@ -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());
}