From eb9d292755c38592db2440e517ba53bb9d9c213b Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Tue, 21 Feb 2006 06:24:23 +0000 Subject: [PATCH] Just some comments added Originally committed to SVN as r93. --- core/audio_karaoke.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/core/audio_karaoke.cpp b/core/audio_karaoke.cpp index c8e1e46c6..42ed42dcf 100644 --- a/core/audio_karaoke.cpp +++ b/core/audio_karaoke.cpp @@ -382,6 +382,7 @@ void AudioKaraoke::OnMouse(wxMouseEvent &event) { int y = event.GetY(); bool shift = event.m_shiftDown; + // Syllable selection mode if (!splitting) { // Left button down if (event.LeftDown()) { @@ -402,9 +403,13 @@ void AudioKaraoke::OnMouse(wxMouseEvent &event) { } } } - } else { + } + + // Karaoke syllable splitting mode + else { int syli = GetSylAtX(x); + // Valid syllable if (syli != -1) { KaraokeSyllable &syl = syllables.at(syli); @@ -468,7 +473,10 @@ void AudioKaraoke::OnMouse(wxMouseEvent &event) { } } - } else { + } + + // Invalid syllable (int syli = GetSylAtX(x); returned -1) + else { split_cursor_syl = -1; split_cursor_x = -1; }