-
Notifications
You must be signed in to change notification settings - Fork 289
/
Copy pathSuperpowered.h
44 lines (31 loc) · 1.82 KB
/
Superpowered.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef Header_Superpowered
#define Header_Superpowered
#ifndef JSWASM
#define JSWASM
#endif
/// @file Superpowered.h
/// @brief Initializes the Superpowered SDKs.
namespace Superpowered {
/// @fn Initialize(const char *licenseKey);
/// @brief Initializes the Superpowered SDKs. Use this only once, when your app or library initializes.
/// Do not use this if Superpowered is loaded dynamically and might be loaded multiple times (a DLL in a VST host for example). @see DynamicInitialize
/// @param licenseKey Visit https://superpowered.com/dev to register license keys.
JSWASM void Initialize(const char *licenseKey);
/// @fn DynamicInitialize(const char *licenseKey);
/// @brief Use this if Superpowered is loaded in a dynamically loaded library (such as a DLL on Windows). It allows for multiple loads (DLL in a VST host example). Enables all features.
/// @param licenseKey Visit https://superpowered.com/dev to register license keys.
void DynamicInitialize(const char *licenseKey);
/// @fn DynamicDestroy();
/// @brief Use this if Superpowered is used in a dynamically loaded library (such as a DLL on Windows), when the dynamically loaded library instance unloads (even if multiple loads may happen).
/// This function will block waiting for all Superpowered background threads to exit when the last instance of the library is unloaded.
/// Please note that you still need to "properly" release all Superpowered objects _before_ this call, such as delete all players, effects, etc.
void DynamicDestroy();
}
/**
\mainpage Audio, Networking, and Cryptographics for Android, iOS, macOS, tvOS, Linux and Windows
Details of the latest features/versions can be found at:
Audio: https://superpowered.com/audio-library-sdk
Networking: https://superpowered.com/networking-library-sdk
Cryptographics: https://superpowered.com/crypto-library-sdk
*/
#endif