setupProcessing and setActive memory barriers

SDK for VST 3 audio plug-in and host development.
Post Reply
thirty
Posts: 9
Joined: Tue Feb 06, 2018 9:38 am

setupProcessing and setActive memory barriers

Post by thirty »

Both the setupProcessing() and setActive() seems to be called from the main thread while process() is of course called from Audio Thread, are there specified any memory barriers to ensure update order?

User avatar
ygrabit
Posts: 179
Joined: Fri Jun 17, 2016 7:52 am
Location: Hamburg
Contact:

Re: setupProcessing and setActive memory barriers

Post by ygrabit »

the host has to guaranty that the order is respected…

UI Thread: setupProcessing (..)
UI Thread: setActive (true)

Audio Thread: setProcessing (true)
Audio Thread: process (...)


Audio Thread: setProcessing (false)

UI Thread: setActive (true)

no specific way to do this correctly is specified.
YVan Grabit

Post Reply