Пример #1
0
 private void OnBar(double time)
 {
     if (_activeTransition != null)
     {
         MusicTransition.MusicTransitionHolder activeTransitionComponentFromState = _activeTransition.GetActiveTransitionComponentFromState(_musicTransitionState);
         if (activeTransitionComponentFromState != null && activeTransitionComponentFromState._musicSyncType == MusicSyncType.OnBar)
         {
             PlayNext(time);
         }
     }
 }
Пример #2
0
 internal override void OnFinishPlaying(double time)
 {
     if (_activeTransition != null)
     {
         MusicTransition.MusicTransitionHolder activeTransitionComponentFromState = _activeTransition.GetActiveTransitionComponentFromState(_musicTransitionState);
         if (activeTransitionComponentFromState != null && activeTransitionComponentFromState._musicSyncType == MusicSyncType.OnEnd)
         {
             PlayNext(time);
         }
     }
 }
Пример #3
0
 internal override bool OnMarker(double time)
 {
     if (_activeTransition == null)
     {
         return(false);
     }
     MusicTransition.MusicTransitionHolder activeTransitionComponentFromState = _activeTransition.GetActiveTransitionComponentFromState(_musicTransitionState);
     if (activeTransitionComponentFromState != null && activeTransitionComponentFromState._musicSyncType == MusicSyncType.OnMarker)
     {
         PlayNext(time);
         return(true);
     }
     return(false);
 }