lib/sox/combiner/tmp_file_strategy.rb
# Build shell command which converts input file into temporary file with
# desired rate and channels.
#
# @param input_file [String] input file
# @param output_file [String] converted output with desired characteristics
#
# @return [String] shell command
Build shell command which converts input file into temporary file with
desired rate and channels.
Build shell command which converts input file into temporary file with desired rate and channels .
def build_convert_command(input_file, output_file)
      builder = CommandBuilder.new([Sox::File.new(input_file)], Sox::File.new(output_file))
      builder.effects = {:channels => @options[:channels], :rate => @options[:rate]}
      builder.build
    end
def build_convert_command ( input_file , output_file ) builder = CommandBuilder . new ( [ Sox :: File . new ( input_file ) ] , Sox :: File . new ( output_file ) ) builder . effects = { :channels => @options [ :channels ] , :rate => @options [ :rate ] } builder . build end
Build shell command which converts input file into temporary file with
desired rate and channels.
Build shell command which converts input file into temporary file with desired rate and channels .
None
String
input_file
None
output_file
converted output with desired characteristics
converted output with desired characteristics