forked from mia/Aegisub
Only play audio on next/prev line in karaoke mode
Originally committed to SVN as r6335.
This commit is contained in:
parent
e10055cb59
commit
c0b599fbae
2 changed files with 4 additions and 2 deletions
|
@ -185,6 +185,8 @@ void AudioTimingControllerKaraoke::Next() {
|
|||
AnnounceUpdatedPrimaryRange();
|
||||
AnnounceUpdatedStyleRanges();
|
||||
}
|
||||
|
||||
c->audioController->PlayPrimaryRange();
|
||||
}
|
||||
|
||||
void AudioTimingControllerKaraoke::Prev() {
|
||||
|
@ -202,6 +204,8 @@ void AudioTimingControllerKaraoke::Prev() {
|
|||
AnnounceUpdatedPrimaryRange();
|
||||
AnnounceUpdatedStyleRanges();
|
||||
}
|
||||
|
||||
c->audioController->PlayPrimaryRange();
|
||||
}
|
||||
|
||||
void AudioTimingControllerKaraoke::GetRenderingStyles(AudioRenderingStyleRanges &ranges) const
|
||||
|
|
|
@ -293,7 +293,6 @@ struct time_next : public Command {
|
|||
c->audioController->Stop();
|
||||
if (c->audioController->GetTimingController())
|
||||
c->audioController->GetTimingController()->Next();
|
||||
c->audioController->PlayPrimaryRange();
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -307,7 +306,6 @@ struct time_prev : public Command {
|
|||
c->audioController->Stop();
|
||||
if (c->audioController->GetTimingController())
|
||||
c->audioController->GetTimingController()->Prev();
|
||||
c->audioController->PlayPrimaryRange();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue