From bef9010b4075dabca7b0558e282d5bba82bcdbdc Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 7 Sep 2013 21:13:31 +0000 Subject: splitfx: round instead of truncate for CDDA Rounding should be more accurate, even though my original awk snippet truncated the output. --- lib/dtas/splitfx.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/dtas') 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 -- cgit v1.2.3-24-ge0c7