mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(sound): stop existing glue music in SI2::StartGlueMusic
This commit is contained in:
parent
f3313ef5aa
commit
1c0cee8077
@ -1012,8 +1012,7 @@ void SI2::StartGlueMusic(const char* name) {
|
|||||||
|
|
||||||
// Stop playing credits music
|
// Stop playing credits music
|
||||||
|
|
||||||
EventUnregister(EVENT_ID_POLL, &SI2::CreditsMusicUpdate);
|
SI2::StopCreditsMusic();
|
||||||
SI2::StopOrFadeOut(&s_CreditsMusicObject, 0, 3.0f, 1);
|
|
||||||
|
|
||||||
if (!name) {
|
if (!name) {
|
||||||
return;
|
return;
|
||||||
@ -1023,9 +1022,11 @@ void SI2::StartGlueMusic(const char* name) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start playing glue music
|
// Stop any existing glue music
|
||||||
|
|
||||||
// TODO SI2::Sub9860E0(-1.0);
|
SI2::StopGlueMusic(-1.0f);
|
||||||
|
|
||||||
|
// Start playing new glue music
|
||||||
|
|
||||||
SStrCopy(s_GlueMusicName, name, sizeof(s_GlueMusicName));
|
SStrCopy(s_GlueMusicName, name, sizeof(s_GlueMusicName));
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user