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") {
|
if (kw=="load_instrument") {
|
||||||
load_instrument(args.c_str());
|
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") {
|
else if (kw=="set_preload_size") {
|
||||||
try {
|
try {
|
||||||
synth.setPreloadSize(stoi(args));
|
synth.setPreloadSize(stoi(args));
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue