Open Boscop opened 4 years ago
Assuming the newer managed-thread API, this kind of initialization is possible for Windows and Linux, but I think it's probably not possible on Apple platforms.
Perhaps on Apple it could be emulated with once_cell?
@ishitatsuyuki Where is the newer API available? On master? I'm using the crates.io version.
Yes, it’s on master.
What's the recommended way to init non-Send data that's needed in the audio callback? I.e. initializing it in the audio thread but only once, before the loop starts running. And without the overhead of thread-local storage. This init code is also taking a long time (loading a bunch of VST plugins), and I don't want to block the audio callback on the first call.