aboutsummaryrefslogtreecommitdiffstats
path: root/src/screens
diff options
context:
space:
mode:
authorbasisbit <basisbit@b956fd51-792f-4845-bead-9b4dfca2ff2c>2015-10-19 20:51:20 +0000
committerbasisbit <basisbit@b956fd51-792f-4845-bead-9b4dfca2ff2c>2015-10-19 20:51:20 +0000
commitfea48eb20937c681bc574b0d49a0c9e4197310fe (patch)
tree9da144d355e0bab639706743616ff5d02ba38ac9 /src/screens
parentb4f5555b3f7319e9d9e712345f577411b0f5fd34 (diff)
downloadusdx-fea48eb20937c681bc574b0d49a0c9e4197310fe.tar.gz
usdx-fea48eb20937c681bc574b0d49a0c9e4197310fe.tar.xz
usdx-fea48eb20937c681bc574b0d49a0c9e4197310fe.zip
* some additional logging when switching between background, visualization and video in USreenSing
* pass the low-latency flag to ffmpeg (this lowers the framerate on certain hardware. -> also use the fast-flag to compensate the lower framerate. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@3149 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/screens')
-rw-r--r--src/screens/UScreenSing.pas6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/screens/UScreenSing.pas b/src/screens/UScreenSing.pas
index 201a2fb5..bf3db3af 100644
--- a/src/screens/UScreenSing.pas
+++ b/src/screens/UScreenSing.pas
@@ -212,22 +212,28 @@ begin
begin
if (fShowVisualization = false) and (fShowBackground = true) and (Ini.VideoEnabled = 1) and CurrentSong.Video.IsSet() then //only Background should be visible currently, switch to video
begin
+ Log.LogStatus('decided to switch to video', 'UScreenSing.ParseInput');
fShowBackground := false;
fCurrentVideo := fVideoClip;
+ Log.LogStatus('finished switching to video', 'UScreenSing.ParseInput');
end
else
begin
if fShowVisualization and CurrentSong.Background.IsSet() then
begin //switch to Background only
+ Log.LogStatus('decided to switch to background', 'UScreenSing.ParseInput');
fShowBackground := true;
fCurrentVideo := nil;
fShowVisualization := false;
+ Log.LogStatus('finished switching to background', 'UScreenSing.ParseInput');
end
else
begin //Video is currently visible, change to visualization
+ Log.LogStatus('decided to switch to visualization', 'UScreenSing.ParseInput');
fShowVisualization := true;
fCurrentVideo := Visualization.Open(PATH_NONE);
fCurrentVideo.play;
+ Log.LogStatus('finished switching to visualization', 'UScreenSing.ParseInput');
end;
end;
Exit;