move static thread declaration, recompile test and test --> worked.

This commit is contained in:
msqr1
2024-01-31 21:17:28 -08:00
parent 94a8a68170
commit 1b74781a9d
9 changed files with 192 additions and 220 deletions

View File

@@ -11,9 +11,12 @@ bool model::checkModel() {
return genericModel::checkModel();
}
void model::load(bool newThrd) {
static auto main{[this](){
auto main{[this](){
mdl = vosk_model_new(".");
if(mdl == nullptr) fireEv("_continue", "Unable to load model for recognition", index);
if(mdl == nullptr) {
fireEv("_continue", "Unable to load model for recognition", index);
return;
}
fireEv("_continue", ".", index);
}};
if(!newThrd) {