about summary refs log tree commit homepage
path: root/lib/dtas/splitfx.rb
diff options
context:
space:
mode:
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 5b04854..a14d221 100644
--- a/lib/dtas/splitfx.rb
+++ b/lib/dtas/splitfx.rb
@@ -57,6 +57,8 @@ class DTAS::SplitFX # :nodoc:
     @infile = nil
     @outdir = nil
     @compression = nil
+    @rate = nil
+    @bits = nil
     @targets = {
       "flac-cdda" => {
         "command" => CMD,
@@ -157,6 +159,8 @@ class DTAS::SplitFX # :nodoc:
   def generic_target(target = "flac")
     outfmt = @infmt.dup
     outfmt.type = target
+    outfmt.bits = @bits if @bits
+    outfmt.rate = @rate if @rate
     { "command" => CMD, "format" => outfmt }
   end
 
@@ -333,6 +337,8 @@ class DTAS::SplitFX # :nodoc:
       FileUtils.mkpath(@outdir)
     end
     @compression = opts[:compression]
+    @rate = opts[:rate]
+    @bits = opts[:bits]
 
     fails = []
     tracks = @tracks.dup