Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AuxiliaryTask gLogTask;
- WriteFile gLogOut[NUM_LOGS];
- void process_log_background (void*);
- void process_log (WriteFile logOut[]);
- bool setup(BelaContext *context, void *userData)
- {
- if ((gLogTask = Bela_createAuxiliaryTask (&process_log_background, 80, "log-writing")) == 0) return false;
- }
- void process_log_background (void*) {
- process_log (gLogOut);
- }
- void render(BelaContext *context, void *userData)
- {
- Bela_scheduleAuxiliaryTask (gLogTask);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement