SoundEmitter: Make SE source count configurable

Default is still 6.
This commit is contained in:
Jonas Kulla 2014-08-25 05:28:46 +02:00
parent 5ee62ba0fd
commit b1ebc655f9
8 changed files with 48 additions and 22 deletions

View file

@ -141,6 +141,7 @@ Config::Config()
{
midi.chorus = false;
midi.reverb = false;
SE.sourceCount = 6;
}
void Config::read(int argc, char *argv[])
@ -165,6 +166,7 @@ void Config::read(int argc, char *argv[])
PO_DESC(midi.soundFont, std::string) \
PO_DESC(midi.chorus, bool) \
PO_DESC(midi.reverb, bool) \
PO_DESC(SE.sourceCount, int) \
PO_DESC(customScript, std::string) \
PO_DESC(pathCache, bool) \
PO_DESC(useScriptNames, bool)
@ -221,6 +223,8 @@ void Config::read(int argc, char *argv[])
#undef PO_DESC
#undef PO_DESC_ALL
SE.sourceCount = clamp(SE.sourceCount, 1, 64);
}
static std::string baseName(const std::string &path)