Clean up proxy object construction/destruction

This commit is contained in:
Robbert van der Helm
2020-12-21 17:59:38 +01:00
parent 51877796fa
commit 5324e4142b
2 changed files with 180 additions and 207 deletions
+14
View File
@@ -148,6 +148,20 @@ class Vst3Bridge : public HostBridge {
*/
size_t generate_instance_id();
/**
* Assign a unique identifier to an object and add it to `object_instances`.
* This will also set up listeners for `IAudioProcessor` and `IComponent`
* function calls.
*/
size_t register_object_instance(
Steinberg::IPtr<Steinberg::FUnknown> object);
/**
* Remove an object from `object_instances`. Will also tear down the
* `IAudioProcessor`/`IComponent` socket if it had one.
*/
void unregister_object_instance(size_t instance_id);
/**
* The IO context used for event handling so that all events and window
* message handling can be performed from a single thread, even when hosting