示例#1
0
    public void Stop()
    {
        CancelPickUpBarCounting();
        if (midiFile == null)
        {
            return;
        }
        state = State.None;
        ResetSequencer();
        if (midiOut)
        {
            MidiOut.AllPedalsOff();
            MidiOut.AllSoundOff();
        }

        if (audioMusic)
        {
            audioMusic.Stop();
        }

        if (audioVocals)
        {
            audioVocals.Stop();
        }

        if (repeatBarSelection)
        {
            SetBar(startBar, false);
        }
        if (OnStop != null)
        {
            OnStop();
        }
    }