mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-28 06:57:02 -04:00
fix garbled ice trap audio
This commit is contained in:
@@ -398,4 +398,7 @@ inline int mDoAud_monsSeStart(u32 i_soundId, const Vec* i_pos, u32 i_actorId, u3
|
||||
0);
|
||||
}
|
||||
|
||||
#if TARGET_PC
|
||||
mDoAud_zelAudio_c& mDoAud_getZelAudio();
|
||||
#endif
|
||||
#endif /* M_DO_M_DO_AUDIO_H */
|
||||
|
||||
@@ -421,8 +421,8 @@ static void handleFoolishItem() {
|
||||
* eventually run out of memory so it is safer to unload everything and load it back in. */
|
||||
|
||||
auto sceneMgr = Z2GetSceneMgr();
|
||||
const u32 seWave1 = sceneMgr->getLoadedSeWave_1();
|
||||
const u32 seWave2 = sceneMgr->getLoadedSeWave_2();
|
||||
const u32 seWave1 = mDoAud_getZelAudio().getLoadedSeWave_1();
|
||||
const u32 seWave2 = mDoAud_getZelAudio().getLoadedSeWave_2();
|
||||
sceneMgr->eraseSeWave(seWave1);
|
||||
sceneMgr->eraseSeWave(seWave2);
|
||||
sceneMgr->loadSeWave(0x46);
|
||||
|
||||
@@ -232,3 +232,9 @@ bool mDoAud_resetRecover() {
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
#if TARGET_PC
|
||||
mDoAud_zelAudio_c& mDoAud_getZelAudio() {
|
||||
return g_mDoAud_zelAudio;
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user