For whatever reason, the right-click-to-play-syllable code in karaoke mode was calling the audio player directly, instead of using the usual Play function in the audio display. Fixes #598 for real.

Originally committed to SVN as r3086.
This commit is contained in:
Niels Martin Hansen 2009-06-25 00:32:33 +00:00
parent beedca2fba
commit a4573a1c72

View file

@ -1522,8 +1522,7 @@ void AudioDisplay::OnMouseEvent(wxMouseEvent& event) {
if (syl != -1) { if (syl != -1) {
int start = karaoke->syllables.at(syl).start_time * 10 + dialogue->Start.GetMS(); int start = karaoke->syllables.at(syl).start_time * 10 + dialogue->Start.GetMS();
int count = karaoke->syllables.at(syl).duration * 10; int count = karaoke->syllables.at(syl).duration * 10;
player->Play(GetSampleAtMS(start),GetSampleAtMS(count)); Play(start, start+count);
//return;
} }
} }
} }