ruby-sox 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3d0a858629f10877dee7bc1be0f707777f3215d
4
- data.tar.gz: bae090b2b7124e2a37f15b1c9001bfa6ed79fced
3
+ metadata.gz: 25ad599fd9cec4a09adcf65a63861e2e7b42a18b
4
+ data.tar.gz: c0a78ce7756cc91d8eff3806169b1c977459316a
5
5
  SHA512:
6
- metadata.gz: a532d4ab550278235dc139d9aa297f7494ba49b06d051a0c1e4e709cfbf78e837915f8f128b5482d6f6bbc83425020095b217f50fec6dcaf2e372c41692192e5
7
- data.tar.gz: c428ddd99eb71e1b157d79b10c301f7a2dd320e4ed8fe332e924d0ec5e19cd6744c13ecec1142b9dd703e5cfd291d82433d01b057ba2f4f22f9f03f4c9d69bcf
6
+ metadata.gz: e4e34f6f35f9a401e2052f992b4922f7596bc21ca882074c983c302dad2faf4b65712dda9b5bee82d14983d3d27410a17f302a2c5164abaaf7fcd70113ddd748
7
+ data.tar.gz: e97e22d5a7ffe91a9847e19cd75a8f0a0a180f91c893e6dfd1509c43a6649ffdfaacbaaaae0af14b97d89824848712a2756f4c819abf2141466e0c3e22d6618d
@@ -62,14 +62,14 @@ to have the same rate and number of channels, and then combines them.
62
62
  Concatenate:
63
63
 
64
64
  ```ruby
65
- combiner = Sox::Combiner.new('in1.mp3', 'in2.ogg', 'in3.wav', :combine => :concatenate)
65
+ combiner = Sox::Combiner.new(['in1.mp3', 'in2.ogg', 'in3.wav'], :combine => :concatenate)
66
66
  combiner.write('out.mp3')
67
67
  ```
68
68
 
69
69
  Mix 3 files into an MP3 with 2 channels and a rate of 1600:
70
70
 
71
71
  ```ruby
72
- combiner = Sox::Combiner.new('in1.mp3', 'in2.ogg', 'in3.wav', :combine => :mix, :rate => 1600, :channels => 2)
72
+ combiner = Sox::Combiner.new(['in1.mp3', 'in2.ogg', 'in3.wav'], :combine => :mix, :rate => 1600, :channels => 2)
73
73
  combiner.write('out.mp3')
74
74
  ```
75
75
 
@@ -81,5 +81,12 @@ module Sox
81
81
  cmd = CommandBuilder.new(@inputs, @output, @options, @effects).build
82
82
  sh(cmd)
83
83
  end
84
+
85
+ # Return the sox command that will be passed to shell.
86
+ #
87
+ # @return [String]
88
+ def to_s
89
+ CommandBuilder.new(@inputs, @output, @options, @effects).build
90
+ end
84
91
  end
85
92
  end
@@ -6,7 +6,7 @@ module Sox
6
6
  #
7
7
  # @example
8
8
  # # Concatenate
9
- # combiner = Sox::Combiner.new('in1.mp3', 'in2.ogg', 'in3.wav', :combine => :concatenate)
9
+ # combiner = Sox::Combiner.new(['in1.mp3', 'in2.ogg', 'in3.wav'], :combine => :concatenate)
10
10
  # combiner.write('out.mp3')
11
11
  class Combiner
12
12
 
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-sox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
+ - TMX Credit
7
8
  - Potapov Sergey
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-09-30 00:00:00.000000000 Z
12
+ date: 2014-09-15 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
@@ -81,7 +82,9 @@ dependencies:
81
82
  - !ruby/object:Gem::Version
82
83
  version: '0'
83
84
  description: Wrapper around sox sound tool
84
- email: blake131313@gmail.com
85
+ email:
86
+ - rubygems@tmxcredit.com
87
+ - blake131313@gmail.com
85
88
  executables: []
86
89
  extensions: []
87
90
  extra_rdoc_files: