Only play audio on next/prev line in karaoke mode

Originally committed to SVN as r6335.
This commit is contained in:
Thomas Goyne 2012-01-22 17:15:25 +00:00
parent e10055cb59
commit c0b599fbae
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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();
}
};
}