mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-02-05 01:29:07 +00:00
chore(sound): add SI2 CVars
This commit is contained in:
parent
91e29bbf52
commit
9c775dce40
3 changed files with 94 additions and 0 deletions
|
|
@ -8,6 +8,10 @@
|
|||
#include <fmod.h>
|
||||
#include <fmod_errors.h>
|
||||
|
||||
|
||||
#define SI2_ERR(errcode, format, ...) SI2::Log_Write(__LINE__, __FILE__, errcode, format, __VA_ARGS__)
|
||||
#define SI2_LOG(format, ...) SI2::Log_Write(__LINE__, __FILE__, FMOD_OK, format, __VA_ARGS__)
|
||||
|
||||
class SI2 {
|
||||
public:
|
||||
// Static variables
|
||||
|
|
@ -20,6 +24,7 @@ class SI2 {
|
|||
static int32_t Log_Init();
|
||||
static void Log_Write(const char* format, ...);
|
||||
static void Log_Write(uint32_t line, const char* filename, FMOD_RESULT errcode, const char* format, ...);
|
||||
static void RegisterCVars();
|
||||
static int32_t Init(int32_t flag);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue