Long running task

A user interface toolkit mainly for audio plug-ins (VST, AudioUnit, etc).
Post Reply
User avatar
pongasoft
Posts: 115
Joined: Sun Mar 11, 2018 5:57 pm
Location: Las Vegas, USA
Contact:

Long running task

Post by pongasoft »

Hi

I have a task (resampling in this case) that happens after the user clicks on some button. I was wondering what is the recommended approach to handle a task like this which is going to take a while to complete in order to prevent the UI to be frozen while it happens. I have done GUI work in the past (like Android) and usually you can spawn a thread or similar to do that and then when complete you can post a message to the main UI queue.

How would this work with VSTGUI?

Thanks
Yan

Arne Scheffler
Posts: 373
Joined: Mon Jun 20, 2016 7:53 am

Re: Long running task

Post by Arne Scheffler »

Hi Yan,
there's no support for async tasks in VSTGUI for plug-ins. You've to roll your own.

Cheers,
Arne

Post Reply