forked from mia/Aegisub
Don't stop audio playback when switching lines
Originally committed to SVN as r6740.
This commit is contained in:
parent
4be8e3595b
commit
252351b7da
1 changed files with 0 additions and 2 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue