about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-09-11 22:20:56 +0000
committerEric Wong <normalperson@yhbt.net>2013-09-11 22:20:56 +0000
commitb8fc27a6e58828721f0e6df78658c4d84bccba1a (patch)
treeb6e6aeca578532d8b4b9f9d562d3073da75253fa /lib
parent6d39e7719211790ff5de30ce7f5e5bf7d1f255de (diff)
downloaddtas-b8fc27a6e58828721f0e6df78658c4d84bccba1a.tar.gz
We do not explicitly resample/dither/downmix without users
permission.
Diffstat (limited to 'lib')
-rw-r--r--lib/dtas/splitfx.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/dtas/splitfx.rb b/lib/dtas/splitfx.rb
index 374d7ff..c54c1a4 100644
--- a/lib/dtas/splitfx.rb
+++ b/lib/dtas/splitfx.rb
@@ -159,8 +159,9 @@ class DTAS::SplitFX # :nodoc:
   end
 
   def generic_target(target = "flac")
-    fmt = { "type" => target }
-    { "command" => CMD, "format" => DTAS::Format.load(fmt) }
+    outfmt = @infmt.dup
+    outfmt.type = target
+    { "command" => CMD, "format" => outfmt }
   end
 
   def spawn(target, t, opts)