VAE - Virtual Audio Engine 1
Small Data Driven Audio Engine
vae_util.hpp
Go to the documentation of this file.
1#ifndef _VAE_UTIL
2#define _VAE_UTIL
3
4#include "../wrapped/vae_profiler.hpp"
5#include "../../external/tklb/src/util/TAssert.h"
6#include "../../external/tklb/src/util/TMath.hpp"
7#include "./vae_logger.hpp"
8#include "../../include/vae/vae.hpp"
9
10#ifndef VAE_RELEASE
11 #define VAE_ASSERT(condition) TKLB_ASSERT(condition)
12#else
13 #define VAE_ASSERT(condition)
14 #define TKLB_NO_ASSERT
15#endif // VAE_RELEASE
16
17namespace vae { namespace core {
18 constexpr void splitGlobalEventHandle(
19 const GlobalEventHandle& handle,
20 BankHandle& bank, EventHandle& event
21 ) {
22 bank = handle >> (sizeof(EventHandle) * 8);
23 event = (handle & InvalidEventHandle);
24 }
25} } // namespace vae::core
26
27
28
29#endif // _VAE_UTIL
constexpr void splitGlobalEventHandle(const GlobalEventHandle &handle, BankHandle &bank, EventHandle &event)
Definition: vae_util.hpp:18
Contains Typedefinitions and basic structures use by the public API and internally.
Definition: vae.hpp:31
SmallHandle BankHandle
Definition: vae.hpp:40
constexpr EventHandle InvalidEventHandle
Definition: vae.hpp:55
GenericHandle EventHandle
The handle used to address events within a bank.
Definition: vae.hpp:41
LargeHandle GlobalEventHandle
Used to globally address events, holds space for BankHandle and EventHandle.
Definition: vae.hpp:47