about summary refs log tree commit homepage
path: root/lib/dtas/splitfx.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-01-19 09:04:18 +0000
committerEric Wong <e@80x24.org>2015-01-19 09:58:47 +0000
commitb95a51440b6378847c4ab5dd4cf9e96e18b5f241 (patch)
treec9266398424220484c9f9c2b4969c9908abc5b89 /lib/dtas/splitfx.rb
parent723cd6da883bda87e092707ce17c31190a1c5205 (diff)
downloaddtas-b95a51440b6378847c4ab5dd4cf9e96e18b5f241.tar.gz
This makes debugging, grepping, and following code confusing
at times and also unexpected breaks usage of the global "spawn"
method.
Diffstat (limited to 'lib/dtas/splitfx.rb')
-rw-r--r--lib/dtas/splitfx.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/dtas/splitfx.rb b/lib/dtas/splitfx.rb
index 71b716a..fc5f47f 100644
--- a/lib/dtas/splitfx.rb
+++ b/lib/dtas/splitfx.rb
@@ -156,7 +156,7 @@ class DTAS::SplitFX # :nodoc:
     { "command" => CMD, "format" => outfmt }
   end
 
-  def spawn(target, t, opts)
+  def splitfx_spawn(target, t, opts)
     target = @targets[target] || generic_target(target)
     outfmt = target["format"]
 
@@ -327,7 +327,7 @@ class DTAS::SplitFX # :nodoc:
     jobs = opts[:jobs] || tracks.size # jobs == nil => everything at once
     jobs.times.each do
       t = tracks.shift or break
-      pid, tmp = spawn(target, t, opts)
+      pid, tmp = splitfx_spawn(target, t, opts)
       pids[pid] = [ t, tmp ]
     end
 
@@ -336,7 +336,7 @@ class DTAS::SplitFX # :nodoc:
       done = pids.delete(pid)
       if status.success?
         if t = tracks.shift
-          pid, tmp = spawn(target, t, opts)
+          pid, tmp = splitfx_spawn(target, t, opts)
           pids[pid] = [ t, tmp ]
         end
         puts "DONE #{done[0].inspect}" if $DEBUG