mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-27 16:22:32 +03:00
feat(sound): implement SI2::CreditsMusicUpdate
This commit is contained in:
1 file changed
+10
-1
+10
-1
@@ -40,7 +40,16 @@ static char s_GlueMusicName[128];
|
|||||||
static SOUNDKITOBJECT s_GlueMusicObject;
|
static SOUNDKITOBJECT s_GlueMusicObject;
|
||||||
|
|
||||||
int32_t SI2::CreditsMusicUpdate(const void* data, void* param) {
|
int32_t SI2::CreditsMusicUpdate(const void* data, void* param) {
|
||||||
// TODO
|
if (!SI2::IsPlaying(&s_CreditsMusicObject)) {
|
||||||
|
SoundKitProperties properties;
|
||||||
|
properties.ResetToDefaults();
|
||||||
|
properties.m_type = 1;
|
||||||
|
// TODO properties.dword18 = 0;
|
||||||
|
|
||||||
|
SI2::PlaySoundKit(s_CreditsMusicName, 0, &s_CreditsMusicObject, &properties);
|
||||||
|
}
|
||||||
|
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
SOUNDKITDEF* SI2::GetSoundKitDef(int32_t id) {
|
SOUNDKITDEF* SI2::GetSoundKitDef(int32_t id) {
|
||||||
|
|||||||
Reference in new issue
Block a user