Add "set_oversampling" option to internal CLI.

This commit is contained in:
jofemodo 2021-08-20 02:33:11 +02:00
parent 29ff2b93f6
commit 48582af119

View file

@ -206,6 +206,13 @@ void cli_thread_proc() {
if (kw=="load_instrument") {
load_instrument(args.c_str());
}
else if (kw=="set_oversampling") {
try {
synth.setOversamplingFactor(stoi(args));
} catch (...) {
std::cout << "ERROR: Can't set oversampling!\n";
}
}
else if (kw=="set_preload_size") {
try {
synth.setPreloadSize(stoi(args));