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