[xiph-commits] r17675 - trunk/squishyball
xiphmont at svn.xiph.org
xiphmont at svn.xiph.org
Sun Nov 28 16:42:11 PST 2010
Author: xiphmont
Date: 2010-11-28 16:42:11 -0800 (Sun, 28 Nov 2010)
New Revision: 17675
Modified:
trunk/squishyball/squishyball.1
trunk/squishyball/tty.c
Log:
correct placement of relative playbar boundaries
Modified: trunk/squishyball/squishyball.1
===================================================================
--- trunk/squishyball/squishyball.1 2010-11-28 20:28:15 UTC (rev 17674)
+++ trunk/squishyball/squishyball.1 2010-11-29 00:42:11 UTC (rev 17675)
@@ -195,7 +195,7 @@
\fBMark Mode\fR quickly fades to silence before flipping to another
sample, marking the transition. Because the samples never overlap,
crosslap artifacts cannot contaminate trial results. However, the
-audible dip between samples can distract from listening, potentially
+audible dip between samples may distract from listening, potentially
making it slightly more difficult to detect legitimate artifacts.
\fBBeep Mode\fR smoothly crosslaps samples, momentarily attenuates
Modified: trunk/squishyball/tty.c
===================================================================
--- trunk/squishyball/tty.c 2010-11-28 20:28:15 UTC (rev 17674)
+++ trunk/squishyball/tty.c 2010-11-29 00:42:11 UTC (rev 17675)
@@ -157,8 +157,8 @@
}
static void draw_playbar(int row){
- int pre = rint(p_st/p_len*columns);
- int post = rint((p_len-p_end)/p_len*columns);
+ int pre = floor(p_st/p_len*columns);
+ int post = columns-floor(p_end/p_len*columns);
int i;
playrow=row;
@@ -354,8 +354,8 @@
min_putchar(' ');
if(was!=now || force){
- int pre = rint(p_st/p_len*columns);
- int post = rint((p_len-p_end)/p_len*columns);
+ int pre = floor(p_st/p_len*columns);
+ int post = columns-floor(p_end/p_len*columns);
min_bold(1);
min_gfx(1);
More information about the commits
mailing list