FSO.HIT.HITThread.NoteActive C# (CSharp) Method

NoteActive() public method

Is a note active?
public NoteActive ( int note ) : bool
note int The note to check.
return bool
        public bool NoteActive(int note)
        {
            if (note == -1 || note >= Notes.Count) return false;
            return (Notes[note].instance.State != SoundState.Stopped);
        }

Usage Example

Ejemplo n.º 1
0
 /// <summary>
 /// Wait for the previously selected note to finish playing.
 /// </summary>
 public static HITResult WaitSamp(HITThread thread)
 {
     if (thread.NoteActive(thread.LastNote))
     {
         thread.PC--;
         return(HITResult.HALT);
     }
     else
     {
         return(HITResult.HALT);
     }
 }
All Usage Examples Of FSO.HIT.HITThread::NoteActive