Class: Sox::Combiner::BaseStrategy
- Inherits:
-
Object
- Object
- Sox::Combiner::BaseStrategy
- Includes:
- Shell
- Defined in:
- lib/sox/combiner/base_strategy.rb
Overview
Common parent class for combiner strategies.
Direct Known Subclasses
Constant Summary
Constants included from Shell
Instance Method Summary collapse
-
#initialize(input_files, options) ⇒ BaseStrategy
constructor
A new instance of BaseStrategy.
-
#output_effects ⇒ Hash
Build effects which will be applied on final output.
-
#output_options ⇒ Hash
Build global options for
sox
command. -
#write(output_file) ⇒ void
Run the command, and save output in the output file.
Methods included from Shell
Constructor Details
#initialize(input_files, options) ⇒ BaseStrategy
8 9 10 11 |
# File 'lib/sox/combiner/base_strategy.rb', line 8 def initialize(input_files, ) @input_files = input_files = end |
Instance Method Details
#output_effects ⇒ Hash
Build effects which will be applied on final output.
26 27 28 |
# File 'lib/sox/combiner/base_strategy.rb', line 26 def output_effects {:norm => [:norm]} end |
#output_options ⇒ Hash
Build global options for sox
command.
33 34 35 |
# File 'lib/sox/combiner/base_strategy.rb', line 33 def {:combine => [:combine]} end |
#write(output_file) ⇒ void
This method returns an undefined value.
Run the command, and save output in the output file.
18 19 20 |
# File 'lib/sox/combiner/base_strategy.rb', line 18 def write(output_file) raise NotImplementedError, __method__ end |