MCPcopy Create free account
hub / github.com/Yaafe/Yaafe / setOutputFormat

Method setOutputFormat

src_cpp/yaafe-core/AudioFileProcessor.cpp:55–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

mainFunction · 0.45

Calls 3

availableMethod · 0.80
setParametersMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected