예제 #1
0
 private void playPauseButton_Click(object sender, EventArgs e)
 {
     if (!playing)
     {
         AudioEngine.SendMessage("startPlayback");
         SetPlaying(true);
     }
     else
     {
         AudioEngine.SendMessage("pausePlayback");
         SetPlaying(false);
     }
 }
예제 #2
0
 private void trackBarLength_Scroll(object sender, EventArgs e)
 {
     AudioEngine.SendMessage("stopPlayback");
     SetPlaying(false);
     if (pictureBox.Image != null)
     {
         songLength = trackBarLength.Value;
         updateSongNotes();
     }
     else
     {
         SetupTrack(6, trackBarLength.Value);
     }
 }
예제 #3
0
 private void stopButton_Click(object sender, EventArgs e)
 {
     AudioEngine.SendMessage("stopPlayback");
     SetPlaying(false);
 }