about summary refs log tree commit homepage
path: root/lib/dtas/splitfx.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-09-07 21:13:31 +0000
committerEric Wong <normalperson@yhbt.net>2013-09-07 21:13:31 +0000
commitbef9010b4075dabca7b0558e282d5bba82bcdbdc (patch)
treef65b5ebeb92ead325d67244e7b21cb46ca88c345 /lib/dtas/splitfx.rb
parent8ebf63afe8c9af13868376e7618c840517618076 (diff)
downloaddtas-bef9010b4075dabca7b0558e282d5bba82bcdbdc.tar.gz
Rounding should be more accurate, even though my original awk
snippet truncated the output.
Diffstat (limited to 'lib/dtas/splitfx.rb')
-rw-r--r--lib/dtas/splitfx.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/splitfx.rb b/lib/dtas/splitfx.rb
index 83ac190..7a5d705 100644
--- a/lib/dtas/splitfx.rb
+++ b/lib/dtas/splitfx.rb
@@ -234,7 +234,7 @@ class DTAS::SplitFX # :nodoc:
     # taking into account CDDA alignment
     if time.sub!(/\.(\d+)\z/, "")
       s = "0.#$1".to_f * @infmt.rate / 75
-      frac = s.to_i * 75
+      frac = s.round * 75
     end
 
     # feed the rest to the normal function