mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(sound): use SOUNDKITOBJECT in SI2::PlaySoundKit
This commit is contained in:
parent
4669e306c3
commit
a5c2189536
@ -235,7 +235,7 @@ bool SI2::IsPlaying(SOUNDKITOBJECT* object) {
|
||||
return object->m_sound->IsPlaying();
|
||||
}
|
||||
|
||||
int32_t SI2::PlaySoundKit(int32_t id, int32_t a2, void* handle, SoundKitProperties* properties, int32_t a5, void* a6, int32_t a7, int32_t a8) {
|
||||
int32_t SI2::PlaySoundKit(int32_t id, int32_t a2, SOUNDKITOBJECT* object, SoundKitProperties* properties, int32_t a5, void* a6, int32_t a7, int32_t a8) {
|
||||
// Basic validations
|
||||
|
||||
if (id <= 0) {
|
||||
@ -324,8 +324,9 @@ int32_t SI2::PlaySoundKit(int32_t id, int32_t a2, void* handle, SoundKitProperti
|
||||
|
||||
SESound* sound;
|
||||
|
||||
if (handle) {
|
||||
// TODO sound = handle->sound;
|
||||
if (object) {
|
||||
sound = object->m_sound;
|
||||
|
||||
// TODO
|
||||
} else {
|
||||
SESound newSound = {};
|
||||
|
||||
@ -27,7 +27,7 @@ class SI2 {
|
||||
static void InitSoundKitDefs();
|
||||
static void InitSoundKitGroups();
|
||||
static bool IsPlaying(SOUNDKITOBJECT* object);
|
||||
static int32_t PlaySoundKit(int32_t id, int32_t a2, void* handle, SoundKitProperties* properties, int32_t a5, void* a6, int32_t a7, int32_t a8);
|
||||
static int32_t PlaySoundKit(int32_t id, int32_t a2, SOUNDKITOBJECT* object, SoundKitProperties* properties, int32_t a5, void* a6, int32_t a7, int32_t a8);
|
||||
static void PlayUISound(int32_t id);
|
||||
static void RegisterCVars();
|
||||
static void RegisterUserCVars();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user