lib/sox/combiner/tmp_file_strategy.rb
# Build +sox+ command to get final output.
#
# @param input_files [Array<String>]
# @param output_file [String]
#
# @return [String] sox command
Build +sox+ command to get final output.
Build + sox + command to get final output .
def build_output_command(input_files, output_file)
      inputs = input_files.map do |path|
        Sox::File.new(path,
          :type     => MEDIATE_TYPE,
          :encoding => MEDIATE_ENCODING,
          :bits     => MEDIATE_BITS,
          :channels => @options[:channels],
          :rate     => @options[:rate])
      end
      output = Sox::File.new(output_file)
      builder = CommandBuilder.new(inputs, output, output_options, output_effects)
      builder.build
    end
def build_output_command ( input_files , output_file ) inputs = input_files . map do | path | Sox :: File . new ( path , :type => MEDIATE_TYPE , :encoding => MEDIATE_ENCODING , :bits => MEDIATE_BITS , :channels => @options [ :channels ] , :rate => @options [ :rate ] ) end output = Sox :: File . new ( output_file ) builder = CommandBuilder . new ( inputs , output , output_options , output_effects ) builder . build end
Build +sox+ command to get final output.
Build + sox + command to get final output .
None
String
input_files
output_file
None