private void _Update_Fade()
 {
     if (TsAudioBGMSTREAM.s_currentBGM != null && !TsAudioBGMSTREAM.s_currentBGM.RefAdapter)
     {
         TsAudioBGMSTREAM.s_currentBGM = null;
     }
     if (TsAudioBGMSTREAM.s_nextBGM != null && !TsAudioBGMSTREAM.s_nextBGM.RefAdapter)
     {
         TsAudioBGMSTREAM.s_nextBGM = null;
     }
     if (TsAudioBGMSTREAM.s_nextBGM != null)
     {
         if (TsAudioBGMSTREAM.s_currentBGM == null)
         {
             TsAudioBGMSTREAM.s_nextBGM.FadeIn();
         }
         else
         {
             TsAudioBGMSTREAM.s_currentBGM.FadeOut();
             TsAudioBGMSTREAM.s_nextBGM.FadeIn();
         }
         TsAudioBGMSTREAM.s_currentBGM = TsAudioBGMSTREAM.s_nextBGM;
         TsAudioBGMSTREAM.s_nextBGM    = null;
     }
 }
Beispiel #2
0
 protected override TsAudio _GetAudioEx()
 {
     if (this._audioEx == null)
     {
         this._audioEx = new TsAudioBGMSTREAM(EAudioType.BGM_STREAM);
     }
     return(this._audioEx);
 }
Beispiel #3
0
 public override bool _InitAudioEx(TsAudio audioEx)
 {
     if (audioEx == null || audioEx.baseData.AudioType != EAudioType.BGM_STREAM)
     {
         return(false);
     }
     this._audioEx = (TsAudioBGMSTREAM)audioEx;
     return(true);
 }
 public static void InitBGMs()
 {
     if (TsAudioBGMSTREAM.s_currentBGM != null)
     {
         TsAudioBGMSTREAM.s_currentBGM = null;
     }
     if (TsAudioBGMSTREAM.s_nextBGM != null)
     {
         TsAudioBGMSTREAM.s_nextBGM = null;
     }
 }