mirror of https://github.com/odrling/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
|
@ -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 New Issue