From b8fc27a6e58828721f0e6df78658c4d84bccba1a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 11 Sep 2013 22:20:56 +0000 Subject: splitfx: preserve original rate/channels/bits for generic targets We do not explicitly resample/dither/downmix without users permission. --- lib/dtas/splitfx.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') 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) -- cgit v1.2.3-24-ge0c7