mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
feat(sound): use better name for static
This commit is contained in:
parent
965a85c8ef
commit
10c17fefe7
@ -13,7 +13,7 @@
|
|||||||
TSGrowableArray<SOUNDKITDEF*> SI2::s_SoundKitDefs;
|
TSGrowableArray<SOUNDKITDEF*> SI2::s_SoundKitDefs;
|
||||||
TSHashTable<SOUNDKITLOOKUP, HASHKEY_CONSTSTRI> SI2::s_SoundKitLookupTable;
|
TSHashTable<SOUNDKITLOOKUP, HASHKEY_CONSTSTRI> SI2::s_SoundKitLookupTable;
|
||||||
|
|
||||||
char SI2::s_SoundCategory[32][18] = {
|
char SI2::s_ChannelGroupNames[32][18] = {
|
||||||
"SFX",
|
"SFX",
|
||||||
"MUSIC",
|
"MUSIC",
|
||||||
"AMBIENCE",
|
"AMBIENCE",
|
||||||
@ -322,7 +322,7 @@ int32_t SI2::PlaySoundKit(int32_t id, int32_t a2, SOUNDKITOBJECT* object, SoundK
|
|||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
if (!std::strcmp(SI2::s_SoundCategory[properties->m_type], "SFX")) {
|
if (!std::strcmp(SI2::s_ChannelGroupNames[properties->m_type], "SFX")) {
|
||||||
static auto enableSFXVar = CVar::Lookup("Sound_EnableSFX");
|
static auto enableSFXVar = CVar::Lookup("Sound_EnableSFX");
|
||||||
|
|
||||||
if (!enableSFXVar || !enableSFXVar->GetInt()) {
|
if (!enableSFXVar || !enableSFXVar->GetInt()) {
|
||||||
@ -331,8 +331,8 @@ int32_t SI2::PlaySoundKit(int32_t id, int32_t a2, SOUNDKITOBJECT* object, SoundK
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
!std::strcmp(SI2::s_SoundCategory[properties->m_type], "MUSIC")
|
!std::strcmp(SI2::s_ChannelGroupNames[properties->m_type], "MUSIC")
|
||||||
|| !strcmp(SI2::s_SoundCategory[properties->m_type], "SCRIPTMUSIC")
|
|| !strcmp(SI2::s_ChannelGroupNames[properties->m_type], "SCRIPTMUSIC")
|
||||||
) {
|
) {
|
||||||
static auto enableMusicVar = CVar::Lookup("Sound_EnableMusic");
|
static auto enableMusicVar = CVar::Lookup("Sound_EnableMusic");
|
||||||
|
|
||||||
|
|||||||
@ -18,7 +18,7 @@ class SI2 {
|
|||||||
static FrameScript_Method s_ScriptFunctions[NUM_SCRIPT_FUNCTIONS_SI2];
|
static FrameScript_Method s_ScriptFunctions[NUM_SCRIPT_FUNCTIONS_SI2];
|
||||||
static TSGrowableArray<SOUNDKITDEF*> s_SoundKitDefs;
|
static TSGrowableArray<SOUNDKITDEF*> s_SoundKitDefs;
|
||||||
static TSHashTable<SOUNDKITLOOKUP, HASHKEY_CONSTSTRI> s_SoundKitLookupTable;
|
static TSHashTable<SOUNDKITLOOKUP, HASHKEY_CONSTSTRI> s_SoundKitLookupTable;
|
||||||
static char s_SoundCategory[32][18];
|
static char s_ChannelGroupNames[32][18];
|
||||||
|
|
||||||
// Static functions
|
// Static functions
|
||||||
static int32_t CreditsMusicUpdate(const void* data, void* param);
|
static int32_t CreditsMusicUpdate(const void* data, void* param);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user