[xiph-commits] r17667 - trunk/squishyball

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Sat Nov 27 12:02:57 PST 2010


Author: xiphmont
Date: 2010-11-27 12:02:57 -0800 (Sat, 27 Nov 2010)
New Revision: 17667

Modified:
   trunk/squishyball/main.c
Log:
Correct sample tracking in A/B test.


Modified: trunk/squishyball/main.c
===================================================================
--- trunk/squishyball/main.c	2010-11-27 19:51:58 UTC (rev 17666)
+++ trunk/squishyball/main.c	2010-11-27 20:02:57 UTC (rev 17667)
@@ -1864,7 +1864,7 @@
   case 0:
     r[0] = random()&1;
     r[1] = 1-r[0];
-    *cchoice = (r[1]==1);
+    *cchoice = 1;
     break;
   case 2:
     r[0] = random()&1;
@@ -2393,6 +2393,7 @@
         }
 
         if(paused){
+          current_sample=randomize[current_choice];
           memset(fragmentA,0,fragsize);
           if(do_seek){
             current_pos+=seek_to;
@@ -2537,7 +2538,3 @@
   return 0;
 }
 
-
-  /* 0         1         2         3        4         5         6         7         8*/
-  /* 2/16/44.1 | trial ??/?? A | <<00:00:00 | 00:00:00 | 00:00:00>> | sre */
-



More information about the commits mailing list