class Sox::Combiner::BaseStrategy

Common parent class for combiner strategies.

Public Class Methods

new(input_files, options) click to toggle source

@param input_files [Array<String>] input files @param options [Hash] see {Sox::Combiner#initialize}

# File lib/sox/combiner/base_strategy.rb, line 8
def initialize(input_files, options)
  @input_files = input_files
  @options     = options
end

Public Instance Methods

output_effects() click to toggle source

Build effects which will be applied on final output.

@return [Hash]

# File lib/sox/combiner/base_strategy.rb, line 26
def output_effects
  {:norm => @options[:norm]}
end
output_options() click to toggle source

Build global options for sox command.

@return [Hash]

# File lib/sox/combiner/base_strategy.rb, line 33
def output_options
  {:combine => @options[:combine]}
end
write(output_file) click to toggle source

Run the command, and save output in the output file.

@param output_file [String]

@return [void]

# File lib/sox/combiner/base_strategy.rb, line 18
def write(output_file)
  raise NotImplementedError, __method__
end