diff --git a/main.cpp b/main.cpp index c3987fb..cdd42e8 100644 --- a/main.cpp +++ b/main.cpp @@ -35,22 +35,18 @@ int pthread_create_realtime (pthread_t *new_thread, void *(*start)(void *), void *arg, int priority); -char flashy[] = {'|','/','-','\\'}; - void audioloop(void* o) { - int counter=0,flashy_counter=0; while(1) { - synth->Update(); - - if (counter==10000) + if (!synth->CallbackMode()) + { + synth->Update(); + } + else { - cerr<<"\b"<1) { - cmd_filename = argv[1]; - cmd_specd = true; - - for (int a=2; aCallbackMode()) synth->Update(); + if (!Fl::check()) break; synth->UpdatePluginGUIs(); // deletes any if necc - //else Fl::wait(); usleep(10000); }