Don't stop audio playback when switching lines

Originally committed to SVN as r6740.
This commit is contained in:
Thomas Goyne 2012-05-02 22:42:18 +00:00
parent 4be8e3595b
commit 252351b7da

View file

@ -286,7 +286,6 @@ struct time_next : public Command {
STR_DISP("Next Line") STR_DISP("Next Line")
STR_HELP("Next line or syllable") STR_HELP("Next line or syllable")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
c->audioController->Stop();
if (c->audioController->GetTimingController()) if (c->audioController->GetTimingController())
c->audioController->GetTimingController()->Next(AudioTimingController::TIMING_UNIT); c->audioController->GetTimingController()->Next(AudioTimingController::TIMING_UNIT);
} }
@ -299,7 +298,6 @@ struct time_prev : public Command {
STR_DISP("Previous Line") STR_DISP("Previous Line")
STR_HELP("Previous line or syllable") STR_HELP("Previous line or syllable")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
c->audioController->Stop();
if (c->audioController->GetTimingController()) if (c->audioController->GetTimingController())
c->audioController->GetTimingController()->Prev(); c->audioController->GetTimingController()->Prev();
} }