diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-10-02 09:11:53 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-10-02 09:14:59 +0000 |
commit | 253b910f920d1916ca44f2617221fd54ad219821 (patch) | |
tree | bdde4332eebfdc9ccb5fd057e9afdab994d994ba /lib/dtas/splitfx.rb | |
parent | c45ca18d8424d0274bc33a09108bae2796d591c1 (diff) | |
download | dtas-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.rb | 6 |
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 |