Add "set_oversampling" option to internal CLI.
This commit is contained in:
parent
29ff2b93f6
commit
48582af119
1 changed files with 7 additions and 0 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue