Version
menu_open
link
Wwise SDK 2021.1.14
TestService.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "PluginInfoGenerator.h"
4 
6 #ifdef __cplusplus
8 #endif
9 {
10 #ifndef __cplusplus
11  ak_wwise_plugin_test_service_interface m_baseInterface;
12 #endif
13 
14 #ifdef __cplusplus
18  {}
19 #endif
20 
21  uint32_t(*TestCall)(const struct ak_wwise_plugin_test_service_instance_v2* in_this);
22  uint32_t(*NewCall)(const struct ak_wwise_plugin_test_service_instance_v2* in_this);
23 };
24 
25 
26 #define AK_WWISE_PLUGIN_TESTSERVICE_V2_ID() \
27  AK_WWISE_PLUGIN_TEST_SERVICE_INTERFACE_FROM_ID(AK_WWISE_PLUGIN_INTERFACE_TYPE_TESTSERVICE, 2)
28 #define AK_WWISE_PLUGIN_TESTSERVICE_V2_CTOR() \
29 { \
30  .m_baseInterface = AK_WWISE_PLUGIN_TESTSERVICE_V2_ID() \
31 }
32 
33 
34 #ifdef __cplusplus
35 namespace AK::Wwise::Plugin
36 {
37  namespace V2
38  {
40 
41  /// \copydoc ak_wwise_plugin_test_service_v2
42  class TestService : public CBaseInstanceGlue<CTestService>
43  {
44  public:
47 
48  /**
49  * \brief The interface type, as requested by this plug-in.
50  */
51  enum : InterfaceTypeValue
52  {
53  /**
54  * \brief The interface type, as requested by this plug-in.
55  */
57  };
58  /**
59  * \brief The interface version, as requested by this plug-in.
60  */
61  enum : InterfaceVersion
62  {
63  /**
64  * \brief The interface version, as requested by this plug-in.
65  */
67  };
68 
69  inline uint32_t TestCall() const
70  {
71  return g_cinterface->TestCall(this);
72  }
73 
74  inline uint32_t NewCall() const
75  {
76  return g_cinterface->NewCall(this);
77  }
78  };
79 
81 
82  } // of namespace V2
83 
84  /// Latest version of the C TestService interface.
86  /// Latest version of the C++ TestService interface.
88  /// Latest version of the requested C++ TestService interface.
90 
94 } // of namespace AK::Wwise::Plugin
95 
96 #endif
V2::TestService TestService
Latest version of the C++ TestService interface.
Definition: TestService.h:87
uint32_t NewCall() const
Definition: TestService.h:74
static GluedInterface * g_cinterface
The unique instance of the CInterface interface. Defined at nullptr first, overridden by the Host onc...
RequestedHostInterface< TestService > RequestTestService
Definition: TestService.h:80
decltype(BaseInterface::m_version) InterfaceVersion
PluginInfoGenerator: Type for the m_version value in BaseInterface.
@ AK_WWISE_PLUGIN_INTERFACE_TYPE_TESTSERVICE
@ k_interfaceVersion
The interface version, as requested by this plug-in.
Definition: TestService.h:66
ak_wwise_plugin_test_service_v2 CTestService
Definition: TestService.h:39
uint32_t(* NewCall)(const struct ak_wwise_plugin_test_service_instance_v2 *in_this)
Definition: TestService.h:22
Wwise Authoring Plug-ins - C++ class helper to automatically determine the plug-in interfaces used in...
PluginInfoGenerator: Associates an existing C Interface with a variable that can be used....
uint32_t TestCall() const
Definition: TestService.h:69
std::underlying_type< InterfaceType >::type InterfaceTypeValue
PluginInfoGenerator: Underlying storage type for the m_interface value in BaseInterface.
AK_WWISE_PLUGIN_SPECIALIZE_INTERFACE_VERSION(AudioPlugin)
Interface description and base class for every Wwise Authoring plug-in interface.
ak_wwise_plugin_test_service_instance_v2 Instance
Definition: TestService.h:15
uint32_t(* TestCall)(const struct ak_wwise_plugin_test_service_instance_v2 *in_this)
Definition: TestService.h:21
@ k_interfaceType
The interface type, as requested by this plug-in.
Definition: TestService.h:56
#define AK_WWISE_PLUGIN_SPECIALIZE_HOST_INTERFACE(in_name, in_varname,...)
PluginInfoGenerator: Creates a C++ host specialization for interface class specified in in_name,...
AK_WWISE_PLUGIN_SPECIALIZE_INTERFACE_CLASS(AudioPlugin)

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