Example #1
0
 private void playPauseButton_Click(object sender, EventArgs e)
 {
     if (!playing)
     {
         AudioEngine.SendMessage("startPlayback");
         SetPlaying(true);
     }
     else
     {
         AudioEngine.SendMessage("pausePlayback");
         SetPlaying(false);
     }
 }
Example #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);
     }
 }
Example #3
0
 private void stopButton_Click(object sender, EventArgs e)
 {
     AudioEngine.SendMessage("stopPlayback");
     SetPlaying(false);
 }