16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 14:49:19 +02:00

configurable complex_sound stop during beginning behavior

This commit is contained in:
milek7
2017-08-25 20:24:06 +02:00
parent 73a1baf3f9
commit 59317743fa
3 changed files with 32 additions and 3 deletions

View File

@@ -204,6 +204,7 @@ int Global::iMWDdivider = 5;
opengl_light Global::DayLight;
Global::soundmode_t Global::soundpitchmode = Global::linear;
Global::soundmode_t Global::soundgainmode = Global::linear;
Global::soundstopmode_t Global::soundstopmode = Global::queue;
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
@@ -571,6 +572,17 @@ void Global::ConfigParse(cParser &Parser)
else if (token == "compat")
Global::soundgainmode = Global::compat;
}
else if (token == "soundstopmode")
{
Parser.getTokens();
Parser >> token;
if (token == "queue")
Global::soundstopmode = Global::queue;
else if (token == "playstop")
Global::soundstopmode = Global::playstop;
else if (token == "stop")
Global::soundstopmode = Global::stop;
}
else if (token == "soundpitchmode")
{
Parser.getTokens();