From 253b910f920d1916ca44f2617221fd54ad219821 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 2 Oct 2013 09:11:53 +0000 Subject: splitfx: default to default DTAS::Format if unspecified 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. --- lib/dtas/splitfx.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/dtas') 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 -- cgit v1.2.3-24-ge0c7