// Token: 0x06000849 RID: 2121 RVA: 0x0004862C File Offset: 0x0004682C private static void gmSoundBGMFadeFunc(AppMain.MTS_TASK_TCB tcb) { AppMain.GMS_SOUND_BGM_FADE_MGR_WORK gms_SOUND_BGM_FADE_MGR_WORK = (AppMain.GMS_SOUND_BGM_FADE_MGR_WORK)tcb.work; AppMain.GMS_SOUND_BGM_FADE_WORK next; for (AppMain.GMS_SOUND_BGM_FADE_WORK gms_SOUND_BGM_FADE_WORK = gms_SOUND_BGM_FADE_MGR_WORK.head; gms_SOUND_BGM_FADE_WORK != null; gms_SOUND_BGM_FADE_WORK = next) { next = gms_SOUND_BGM_FADE_WORK.next; gms_SOUND_BGM_FADE_WORK.now_vol += gms_SOUND_BGM_FADE_WORK.fade_spd; gms_SOUND_BGM_FADE_WORK.frame--; if (gms_SOUND_BGM_FADE_WORK.frame <= 0) { gms_SOUND_BGM_FADE_WORK.now_vol = gms_SOUND_BGM_FADE_WORK.end_vol; } AppMain.GsSoundScbSetVolume(gms_SOUND_BGM_FADE_WORK.snd_scb, gms_SOUND_BGM_FADE_WORK.now_vol); if (gms_SOUND_BGM_FADE_WORK.frame <= 0 || AppMain.GsSoundIsBgmStop(gms_SOUND_BGM_FADE_WORK.snd_scb)) { if (gms_SOUND_BGM_FADE_WORK.now_vol > 0f) { AppMain.GsSoundScbSetSeqMute(gms_SOUND_BGM_FADE_WORK.snd_scb, false); } else { AppMain.GsSoundScbSetSeqMute(gms_SOUND_BGM_FADE_WORK.snd_scb, true); } AppMain.gmSoundBGMFadeDetachList(gms_SOUND_BGM_FADE_MGR_WORK, gms_SOUND_BGM_FADE_WORK); } } if (gms_SOUND_BGM_FADE_MGR_WORK.num <= 0) { AppMain.mtTaskClearTcb(tcb); } }
private static void gmSoundBGMFadeFunc(AppMain.MTS_TASK_TCB tcb) { AppMain.GMS_SOUND_BGM_FADE_MGR_WORK work = (AppMain.GMS_SOUND_BGM_FADE_MGR_WORK)tcb.work; AppMain.GMS_SOUND_BGM_FADE_WORK next; for (AppMain.GMS_SOUND_BGM_FADE_WORK fade_work = work.head; fade_work != null; fade_work = next) { next = fade_work.next; fade_work.now_vol += fade_work.fade_spd; --fade_work.frame; if (fade_work.frame <= 0) { fade_work.now_vol = fade_work.end_vol; } AppMain.GsSoundScbSetVolume(fade_work.snd_scb, fade_work.now_vol); if (fade_work.frame <= 0 || AppMain.GsSoundIsBgmStop(fade_work.snd_scb)) { if ((double)fade_work.now_vol > 0.0) { AppMain.GsSoundScbSetSeqMute(fade_work.snd_scb, false); } else { AppMain.GsSoundScbSetSeqMute(fade_work.snd_scb, true); } AppMain.gmSoundBGMFadeDetachList(work, fade_work); } } if (work.num > 0) { return; } AppMain.mtTaskClearTcb(tcb); }
// Token: 0x0600084A RID: 2122 RVA: 0x000486FC File Offset: 0x000468FC private static void gmSoundBGMFadeDest(AppMain.MTS_TASK_TCB tcb) { AppMain.GMS_SOUND_BGM_FADE_MGR_WORK gms_SOUND_BGM_FADE_MGR_WORK = (AppMain.GMS_SOUND_BGM_FADE_MGR_WORK)tcb.work; AppMain.GMS_SOUND_BGM_FADE_WORK next; for (AppMain.GMS_SOUND_BGM_FADE_WORK gms_SOUND_BGM_FADE_WORK = gms_SOUND_BGM_FADE_MGR_WORK.head; gms_SOUND_BGM_FADE_WORK != null; gms_SOUND_BGM_FADE_WORK = next) { next = gms_SOUND_BGM_FADE_WORK.next; AppMain.gmSoundBGMFadeDetachList(gms_SOUND_BGM_FADE_MGR_WORK, gms_SOUND_BGM_FADE_WORK); } if (AppMain.gm_sound_bgm_fade_tcb == tcb) { AppMain.gm_sound_bgm_fade_tcb = null; } }
private static void gmSoundBGMFadeDest(AppMain.MTS_TASK_TCB tcb) { AppMain.GMS_SOUND_BGM_FADE_MGR_WORK work = (AppMain.GMS_SOUND_BGM_FADE_MGR_WORK)tcb.work; AppMain.GMS_SOUND_BGM_FADE_WORK next; for (AppMain.GMS_SOUND_BGM_FADE_WORK fade_work = work.head; fade_work != null; fade_work = next) { next = fade_work.next; AppMain.gmSoundBGMFadeDetachList(work, fade_work); } if (AppMain.gm_sound_bgm_fade_tcb != tcb) { return; } AppMain.gm_sound_bgm_fade_tcb = (AppMain.MTS_TASK_TCB)null; }
// Token: 0x0600084B RID: 2123 RVA: 0x00048744 File Offset: 0x00046944 private static void gmSoundBGMFadeAttachList(AppMain.GMS_SOUND_BGM_FADE_MGR_WORK mgr_work, AppMain.GMS_SOUND_BGM_FADE_WORK fade_work) { if (mgr_work.tail != null) { fade_work.prev = mgr_work.tail; mgr_work.tail.next = fade_work; mgr_work.tail = fade_work; } else { mgr_work.head = fade_work; mgr_work.tail = fade_work; } mgr_work.num++; }
// Token: 0x0600084C RID: 2124 RVA: 0x00048798 File Offset: 0x00046998 private static void gmSoundBGMFadeDetachList(AppMain.GMS_SOUND_BGM_FADE_MGR_WORK mgr_work, AppMain.GMS_SOUND_BGM_FADE_WORK fade_work) { if (fade_work.prev != null) { fade_work.prev.next = fade_work.next; } else { mgr_work.head = fade_work.next; } if (fade_work.next != null) { fade_work.next.prev = fade_work.prev; } else { mgr_work.tail = fade_work.prev; } mgr_work.num--; }
// Token: 0x06000848 RID: 2120 RVA: 0x000485CC File Offset: 0x000467CC private static void gmSoundSetBGMFadeEnd(AppMain.GSS_SND_SCB snd_scb) { if (AppMain.gm_sound_bgm_fade_tcb != null) { AppMain.GMS_SOUND_BGM_FADE_MGR_WORK gms_SOUND_BGM_FADE_MGR_WORK = (AppMain.GMS_SOUND_BGM_FADE_MGR_WORK)AppMain.gm_sound_bgm_fade_tcb.work; AppMain.GMS_SOUND_BGM_FADE_WORK next; for (AppMain.GMS_SOUND_BGM_FADE_WORK gms_SOUND_BGM_FADE_WORK = gms_SOUND_BGM_FADE_MGR_WORK.head; gms_SOUND_BGM_FADE_WORK != null; gms_SOUND_BGM_FADE_WORK = next) { next = gms_SOUND_BGM_FADE_WORK.next; if (gms_SOUND_BGM_FADE_WORK.snd_scb == snd_scb) { AppMain.gmSoundBGMFadeDetachList(gms_SOUND_BGM_FADE_MGR_WORK, gms_SOUND_BGM_FADE_WORK); } } if (gms_SOUND_BGM_FADE_MGR_WORK.num <= 0) { AppMain.mtTaskClearTcb(AppMain.gm_sound_bgm_fade_tcb); } } }
private static void gmSoundSetBGMFadeEnd(AppMain.GSS_SND_SCB snd_scb) { if (AppMain.gm_sound_bgm_fade_tcb == null) { return; } AppMain.GMS_SOUND_BGM_FADE_MGR_WORK work = (AppMain.GMS_SOUND_BGM_FADE_MGR_WORK)AppMain.gm_sound_bgm_fade_tcb.work; AppMain.GMS_SOUND_BGM_FADE_WORK next; for (AppMain.GMS_SOUND_BGM_FADE_WORK fade_work = work.head; fade_work != null; fade_work = next) { next = fade_work.next; if (fade_work.snd_scb == snd_scb) { AppMain.gmSoundBGMFadeDetachList(work, fade_work); } } if (work.num > 0) { return; } AppMain.mtTaskClearTcb(AppMain.gm_sound_bgm_fade_tcb); }