Version

menu_open
Wwise SDK 2021.1.14

◆ g_instance

template<typename PluginT >
PluginInfoGenerator< PluginT > * AK.Wwise::Plugin::PluginInfoGenerator< PluginT >::g_instance = nullptr
static

The unique generator instance for this particular plug-in.

This is used to link the generator to the instantiate function, as defined statically.

It is known there is only one bridging interface between the C interface of the plug-in and the host, which means it's effectively limited to instantiating one instance at a time, where the host pre-fills its instance data, calls the Instantiate function, and then retrieves the new instance, as provided by the plug-in.

As such, this unique g_instance to do instantiation is not a new requirement, but merely an acknowledgement the Instantiate function is not reentrant.

Definition at line 706 of file PluginInfoGenerator.h.

Referenced by AK.Wwise::Plugin::PluginInfoGenerator< PluginT >::Instantiate(), AK.Wwise::Plugin::PluginInfoGenerator< PluginT >::PluginInfoGenerator(), and AK.Wwise::Plugin::PluginInfoGenerator< PluginT >::~PluginInfoGenerator().


Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise