aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Screens
diff options
context:
space:
mode:
authorjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-12-06 10:46:53 +0000
committerjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-12-06 10:46:53 +0000
commit553ee1ad981964a3689e6510d5813dbff0f2119c (patch)
tree9872d173c48d70963218f79149d215dba4f5b7f3 /Game/Code/Screens
parent3363e2079c5fee09bc65bdad9342571b7fc23dc0 (diff)
downloadusdx-553ee1ad981964a3689e6510d5813dbff0f2119c.tar.gz
usdx-553ee1ad981964a3689e6510d5813dbff0f2119c.tar.xz
usdx-553ee1ad981964a3689e6510d5813dbff0f2119c.zip
added "V" key to sing screen to start Visualization...
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@681 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Game/Code/Screens/UScreenSing.pas17
1 files changed, 9 insertions, 8 deletions
diff --git a/Game/Code/Screens/UScreenSing.pas b/Game/Code/Screens/UScreenSing.pas
index c3bb78d2..b3b92446 100644
--- a/Game/Code/Screens/UScreenSing.pas
+++ b/Game/Code/Screens/UScreenSing.pas
@@ -150,6 +150,13 @@ begin
begin
Pause;
end;
+
+ SDLK_V: //Show Visualization
+ begin
+ AktSong.VideoLoaded := not AktSong.VideoLoaded;
+ VideoPlayback.play;
+
+ end;
SDLK_RETURN:
begin
@@ -183,7 +190,7 @@ begin
// pause Video
if (AktSong.Video <> '') and FileExists(AktSong.Path + AktSong.Video) then
VideoPlayback.Pause;
-// FFmpegTogglePause;
+
end
else //Pause ausschalten
begin
@@ -197,8 +204,6 @@ begin
// Video
if (AktSong.Video <> '') and FileExists(AktSong.Path + AktSong.Video) then
VideoPlayback.Pause;
-// FFmpegTogglePause;
- //SkipSmpeg(PauseTime);
Paused := false;
end;
@@ -427,14 +432,9 @@ begin
// set movie
if (AktSong.Video <> '') and FileExists(AktSong.Path + AktSong.Video) then
begin
-(* OpenSmpeg(AktSong.Path + AktSong.Video);
- SkipSmpeg(AktSong.VideoGAP + AktSong.Start);*)
-
// todo: VideoGap and Start time verwursten
-// FFmpegOpenFile(pAnsiChar(AktSong.Path + AktSong.Video));
VideoPlayback.Open( AktSong.Path + AktSong.Video );
-// FFmpegSkip(AktSong.VideoGAP + AktSong.Start);
VideoPlayback.position := AktSong.VideoGAP + AktSong.Start;
AktSong.VideoLoaded := true;
@@ -1119,6 +1119,7 @@ begin
// update and draw movie
if ShowFinish and AktSong.VideoLoaded then
+// if ShowFinish then
begin
try
// UpdateSmpeg; // this only draws