aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrian-ch <brian-ch@b956fd51-792f-4845-bead-9b4dfca2ff2c>2014-06-12 20:49:09 +0000
committerbrian-ch <brian-ch@b956fd51-792f-4845-bead-9b4dfca2ff2c>2014-06-12 20:49:09 +0000
commit40250d513a18159d5ff641df908202ee297f7f96 (patch)
treefc71df12c3aeb04859926ebcc826a164cead5ce4
parentef6d6c7b8cac6041376acaf004a268f263ac0492 (diff)
downloadusdx-40250d513a18159d5ff641df908202ee297f7f96.tar.gz
usdx-40250d513a18159d5ff641df908202ee297f7f96.tar.xz
usdx-40250d513a18159d5ff641df908202ee297f7f96.zip
Add option to skip the song intro
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@3071 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--src/screens/UScreenSing.pas11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/screens/UScreenSing.pas b/src/screens/UScreenSing.pas
index ecc0cc79..f26b8cf7 100644
--- a/src/screens/UScreenSing.pas
+++ b/src/screens/UScreenSing.pas
@@ -222,6 +222,17 @@ begin
Exit;
end;
+ // skip intro
+ Ord('S'):
+ begin
+ if (AudioPlayback.Position < CurrentSong.gap / 1000 - 6) then
+ begin
+ LyricsState.SetCurrentTime(CurrentSong.gap / 1000 - 5);
+ AudioPlayback.SetSyncSource(fLyricsSync);
+ end;
+ Exit;
+ end;
+
// pause
Ord('P'):
begin