# TODO: spawn a thread to do this stuff in the background
FileUtils.mkdir_p(track.flac_dir, $fu_args)
- my_system("flac -f '#{track.wav_file_name}' --output-name='#{track.flac_file_name}'")
+ my_system("flac -f '#{track.wav_file_name}' \
+--output-name='#{track.flac_file_name}' &>/dev/null")
begin
- my_system("flac --test '#{track.flac_file_name}'")
+ my_system("flac --test '#{track.flac_file_name}' &>/dev/null")
rescue
raise "failed to encode #{track.flac_file_name}"
end
FileUtils.mkdir_p(track.mp3_dir, $fu_args)
- my_system("lame -q 1 -b 192 '#{track.wav_file_name}' '#{track.mp3_file_name}'")
+ my_system("lame -q 1 -b 192 '#{track.wav_file_name}' \
+'#{track.mp3_file_name}' &>/dev/null")
FileUtils.rm_f(track.wav_file_name, $fu_args)
end