| 184 | //------------------------------------------------------------------------------ |
| 185 | |
| 186 | bool OptionHandler::convertAudioFormat( |
| 187 | const boost::filesystem::path& input_filename, |
| 188 | const FileFormat::FileFormat input_format, |
| 189 | const boost::filesystem::path& output_filename, |
| 190 | const Options& options |
| 191 | ) |
| 192 | { |
| 193 | std::unique_ptr<AudioFileReader> reader( |
| 194 | createAudioFileReader(input_filename, input_format, options) |
| 195 | ); |
| 196 | |
| 197 | if (!reader->open(input_filename.string().c_str())) { |
| 198 | return false; |
| 199 | } |
| 200 | |
| 201 | WavFileWriter writer(output_filename.string().c_str()); |
| 202 | |
| 203 | return reader->run(writer); |
| 204 | } |
| 205 | |
| 206 | //------------------------------------------------------------------------------ |
| 207 |
nothing calls this directly
no test coverage detected