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);
}
/// <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); } }