| 53 | } |
| 54 | |
| 55 | bool AudioFileProcessor::setOutputFormat(const std::string& format, |
| 56 | const std::string& outDir, |
| 57 | const ParameterMap& params) |
| 58 | { |
| 59 | if (m_format) |
| 60 | delete m_format; |
| 61 | const OutputFormat* prototype = OutputFormat::get(format); |
| 62 | if (prototype==NULL || !prototype->available()) |
| 63 | return false; |
| 64 | m_format = prototype->clone(); |
| 65 | m_format->setParameters(outDir,params); |
| 66 | return true; |
| 67 | } |
| 68 | |
| 69 | int AudioFileProcessor::processFile(Engine& engine, const std::string& filename) |
| 70 | { |
no test coverage detected