Just some comments added

Originally committed to SVN as r93.
This commit is contained in:
Rodrigo Braz Monteiro 2006-02-21 06:24:23 +00:00
parent 88df752e48
commit eb9d292755
1 changed files with 10 additions and 2 deletions

View File

@ -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;
}