#include #include #include #include #include "Arguments.h" #include "SampleStream.h" #include "FilterWorker.h" int main(int argc, char** argv) { Arguments args(argc, argv); std::fstream file_input(args.file_input, std::ios::in | std::ios::binary); std::stringstream file_input_content; file_input_content << file_input.rdbuf(); file_input.close(); SampleStream stream(file_input_content.str()); printf("max_threads: %i\n", args.max_threads); printf("gain_bass: %+i\n", args.gain_bass); printf("gain_treble: %+i\n", args.gain_treble); printf("input filename: \"%s\"\n", args.file_input.c_str()); printf("output filename: \"%s\"\n", args.file_output.c_str()); std::fstream file_output(args.file_output, std::ios::out | std::ios::binary); std::string edited_stream = stream.save(); file_output.write(edited_stream.c_str(), edited_stream.size()); file_output.close(); return 0; }