]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
fix volume value preservation bug
authorBuddyFriendGuy <bfggeneral@gmail.com>
Sat, 16 May 2015 03:36:13 +0000 (23:36 -0400)
committerBuddyFriendGuy <bfggeneral@gmail.com>
Sat, 16 May 2015 03:36:13 +0000 (23:36 -0400)
misc/tools/NexuizDemoRecorder/main/pom.xml
misc/tools/NexuizDemoRecorder/main/src/main/java/com/nexuiz/demorecorder/application/democutter/DemoCutter.java
misc/tools/NexuizDemoRecorder/main/src/main/java/com/nexuiz/demorecorder/ui/swinggui/SwingGUI.java

index 039019416d9afafb8fbb9b33af07b470fdafec9e..821f0e09b52c26fde564ce212fff60c95fab3e9b 100644 (file)
@@ -4,7 +4,7 @@
        <groupId>NexuizDemoRecorder</groupId>
        <artifactId>NexuizDemoRecorder</artifactId>
        <packaging>jar</packaging>
-       <version>0.3</version>
+       <version>0.3.1</version>
        <name>NexuizDemoRecorder</name>
        <url>http://maven.apache.org</url>
        <dependencies>
index a1174e66fee17d0ff6e099f7d8982fb2bc3cd767..21d19b96ccca27e94c2b1690f405b6dd0ae1798d 100644 (file)
@@ -99,37 +99,31 @@ public class DemoCutter {
                                        if (firstLoop) {
                                                injectBuffer = "\011\n" + injectAtStart + ";slowmo " + ffwSpeedFirstStage + "\n\000";
                                                firstLoop = false;
-                                       }
-                                       if (demoStarted < 1 && svctime > (startTime - 50)) {
-                                               if (svcLoops == 0) {
-                                                       //make sure that for short demos (duration less than 50 sec)
-                                                       //the injectAtStart is still honored
-                                                       injectBuffer = "\011\n" + injectAtStart + ";slowmo " + ffwSpeedSecondStage + "\n\000";
-                                               } else {
+                                       } else {
+                                               if (demoStarted < 1 && svctime > (startTime - 50)) {
                                                        injectBuffer = "\011\nslowmo " + ffwSpeedSecondStage + "\n\000";
+                                                       demoStarted = 1;
+                                               }
+                                               if (demoStarted < 2 && svctime > (startTime - 5)) {
+                                                       injectBuffer = "\011\nslowmo 1;" + injectBeforeCap +"\n\000";
+                                                       demoStarted = 2;
+                                               }
+                                               if (demoStarted < 3 && svctime > startTime) {
+                                                       injectBuffer = "\011\ncl_capturevideo 1\n\000";
+                                                       demoStarted = 3;
+                                               }
+                                               if (!endIsReached && svctime > endTime) {
+                                                       injectBuffer = "\011\ncl_capturevideo 0\n\000";
+                                                       endIsReached = true;
+                                               }
+                                               if (endIsReached && !finalInjectionDone && svctime > (endTime + 1)) {
+                                                       injectBuffer = "\011\n" + injectAfterCap + "\n\000";
+                                                       finalInjectionDone = true;
+                                               }
+                                               if (finalInjectionDone && !disconnectIssued && svctime > (endTime + 2)) {
+                                                       injectBuffer = "\011\ndisconnect\n\000";
+                                                       disconnectIssued = true;
                                                }
-                                               
-                                               demoStarted = 1;
-                                       }
-                                       if (demoStarted < 2 && svctime > (startTime - 5)) {
-                                               injectBuffer = "\011\nslowmo 1;" + injectBeforeCap +"\n\000";
-                                               demoStarted = 2;
-                                       }
-                                       if (demoStarted < 3 && svctime > startTime) {
-                                               injectBuffer = "\011\ncl_capturevideo 1\n\000";
-                                               demoStarted = 3;
-                                       }
-                                       if (!endIsReached && svctime > endTime) {
-                                               injectBuffer = "\011\ncl_capturevideo 0\n\000";
-                                               endIsReached = true;
-                                       }
-                                       if (endIsReached && !finalInjectionDone && svctime > (endTime + 1)) {
-                                               injectBuffer = "\011\n" + injectAfterCap + "\n\000";
-                                               finalInjectionDone = true;
-                                       }
-                                       if (finalInjectionDone && !disconnectIssued && svctime > (endTime + 2)) {
-                                               injectBuffer = "\011\ndisconnect\n\000";
-                                               disconnectIssued = true;
                                        }
                                        svcLoops++;
                                }
index bb662c7c4e4af2fb2cb13faa918b3d8bcb0974f8..a00de35b6863ae8e3a6ef34bd5eb44ceadc41dc3 100644 (file)
@@ -144,7 +144,7 @@ public class SwingGUI extends JFrame implements WindowListener, DemoRecorderUI {
        private static final String mainHelpSetName = "help/DemoRecorderHelp.hs";
 
        public SwingGUI(DemoRecorderApplication appLayer) {
-               super("Nexuiz Demo Recorder v0.3");
+               super("Nexuiz Demo Recorder v0.3.1");
                addWindowListener(this);
 
                this.appLayer = appLayer;