private void OnBar(double time)
 {
     if (_activeTransition != null)
     {
         MusicTransition.MusicTransitionHolder activeTransitionComponentFromState = _activeTransition.GetActiveTransitionComponentFromState(_musicTransitionState);
         if (activeTransitionComponentFromState != null && activeTransitionComponentFromState._musicSyncType == MusicSyncType.OnBar)
         {
             PlayNext(time);
         }
     }
 }
 internal override void OnFinishPlaying(double time)
 {
     if (_activeTransition != null)
     {
         MusicTransition.MusicTransitionHolder activeTransitionComponentFromState = _activeTransition.GetActiveTransitionComponentFromState(_musicTransitionState);
         if (activeTransitionComponentFromState != null && activeTransitionComponentFromState._musicSyncType == MusicSyncType.OnEnd)
         {
             PlayNext(time);
         }
     }
 }
 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);
 }