Remove deprecated sox option (thanks Kris) - warvox - VoIP based wardialing tool, forked from rapid7/warvox.
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) commit b4771a83b97259eb24dc6e07ff8b00d239c7a747
 (DIR) parent 8efdd0d3eeb997d0961cb507ed57d97d0842fe63
 (HTM) Author: HD Moore <hd_moore@rapid7.com>
       Date:   Sat,  9 May 2009 03:34:04 +0000
       
       Remove deprecated sox option (thanks Kris)
       
       
       Diffstat:
         M bin/create_media.rb                 |       2 +-
         M bin/create_ui.rb                    |       2 +-
         M lib/warvox/jobs/analysis.rb         |       2 +-
       
       3 files changed, 3 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/bin/create_media.rb b/bin/create_media.rb
       @@ -76,7 +76,7 @@ dir.entries.sort.each do |ent|
                datfile.close
                        
                # Generate a MP3 audio file
       -        system("sox -s -w -r 8000 -t raw -c 1 #{rawfile.path} #{dst}/#{num}.wav")
       +        system("sox -s -2 -r 8000 -t raw -c 1 #{rawfile.path} #{dst}/#{num}.wav")
                system("lame #{dst}/#{num}.wav #{dst}/#{num}.mp3 >/dev/null 2>&1")
                File.unlink("#{dst}/#{num}.wav")
                File.unlink(rawfile.path)
 (DIR) diff --git a/bin/create_ui.rb b/bin/create_ui.rb
       @@ -84,7 +84,7 @@ dir.entries.sort.each do |ent|
                
        
                # Generate a MP3 audio file
       -        system("sox -s -w -r 8000 -t raw -c 1 #{rawfile.path} #{dst}/#{num}.wav")
       +        system("sox -s -2 -r 8000 -t raw -c 1 #{rawfile.path} #{dst}/#{num}.wav")
                system("lame #{dst}/#{num}.wav #{dst}/#{num}.mp3 >/dev/null 2>&1")
                File.unlink("#{dst}/#{num}.wav")
                File.unlink(rawfile.path)
 (DIR) diff --git a/lib/warvox/jobs/analysis.rb b/lib/warvox/jobs/analysis.rb
       @@ -294,7 +294,7 @@ class Analysis < Base
                        frefile.path
        
                        # Generate a MP3 audio file
       -                system("sox -s -w -r 8000 -t raw -c 1 #{rawfile.path} #{bname}.wav")
       +                system("sox -s -2 -r 8000 -t raw -c 1 #{rawfile.path} #{bname}.wav")
                        system("lame #{bname}.wav #{bname}.mp3 >/dev/null 2>&1")
                        File.unlink("#{bname}.wav")
                        File.unlink(rawfile.path)