about summary refs log tree commit homepage
path: root/lib/dtas/splitfx.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-10-02 09:11:53 +0000
committerEric Wong <normalperson@yhbt.net>2013-10-02 09:14:59 +0000
commit253b910f920d1916ca44f2617221fd54ad219821 (patch)
treebdde4332eebfdc9ccb5fd057e9afdab994d994ba /lib/dtas/splitfx.rb
parentc45ca18d8424d0274bc33a09108bae2796d591c1 (diff)
downloaddtas-253b910f920d1916ca44f2617221fd54ad219821.tar.gz
Some users may not use nor care about $OUTFMT at all, so
just start them out with a default one based on the original
to get started.
Diffstat (limited to 'lib/dtas/splitfx.rb')
-rw-r--r--lib/dtas/splitfx.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/dtas/splitfx.rb b/lib/dtas/splitfx.rb
index 08ab13f..b83f7db 100644
--- a/lib/dtas/splitfx.rb
+++ b/lib/dtas/splitfx.rb
@@ -167,6 +167,12 @@ class DTAS::SplitFX # :nodoc:
   def spawn(target, t, opts)
     target = @targets[target] || generic_target(target)
     outfmt = target["format"]
+
+    # default format:
+    unless outfmt
+      outfmt = @infmt.dup
+      outfmt.type = "flac"
+    end
     env = outfmt.to_env
 
     # set very high quality resampling if using 24-bit or higher output