diff options
author | Eric Wong <e@80x24.org> | 2024-01-27 22:17:21 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2024-02-01 08:02:26 +0000 |
commit | 53c76bcdd0afb688289079515deb292dc4ba6c96 (patch) | |
tree | 7f15bde28d3692f5656a6fa22a5c01bd862e9940 /lib/dtas/splitfx.rb | |
parent | e4ec1f8ec7cc770368ce71c3136c6a4829411980 (diff) | |
download | dtas-master.tar.gz |
Similar to the switch in dtas-archive(1), I got tired of having to manually add stats to all the rips I was tracking out.
Diffstat (limited to 'lib/dtas/splitfx.rb')
-rw-r--r-- | lib/dtas/splitfx.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/dtas/splitfx.rb b/lib/dtas/splitfx.rb index bb31ab5..1150ee0 100644 --- a/lib/dtas/splitfx.rb +++ b/lib/dtas/splitfx.rb @@ -10,7 +10,8 @@ require 'tempfile' # Unlike the stuff for dtas-player, dtas-splitfx is fairly tied to sox # (but we may still pipe to ecasound or anything else) class DTAS::SplitFX # :nodoc: - CMD = 'sox "$INFILE" $COMMENTS $OUTFMT $OUTDST $TRIMFX $FX $RATEFX $DITHERFX' + CMD = 'sox "$INFILE" $COMMENTS $OUTFMT $OUTDST $TRIMFX $FX' \ + ' $RATEFX $DITHERFX $STATS' include DTAS::Process attr_reader :infile, :env, :command @@ -204,6 +205,7 @@ class DTAS::SplitFX # :nodoc: elsif outfmt.bits && outfmt.bits <= 16 env["DITHERFX"] = "dither -s" end + env['STATS'] = 'stats' if opts[:stats] comments = Tempfile.new(%W(dtas-splitfx-#{t.comments["TRACKNUMBER"]} .txt)) t.comments.each do |k,v| env[k] = v.to_s |