diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-09-07 21:13:31 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-09-07 21:13:31 +0000 |
commit | bef9010b4075dabca7b0558e282d5bba82bcdbdc (patch) | |
tree | f65b5ebeb92ead325d67244e7b21cb46ca88c345 /lib/dtas/splitfx.rb | |
parent | 8ebf63afe8c9af13868376e7618c840517618076 (diff) | |
download | dtas-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.rb | 2 |
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 |