Update Midnam C++ API

This commit is contained in:
Jean Pierre Cimalando 2021-04-16 00:27:56 +02:00
parent 2d3b62b69c
commit bc4cf8a5ad
2 changed files with 2 additions and 17 deletions

View file

@ -242,16 +242,6 @@ public:
*/ */
int getNumCurves() const noexcept; int getNumCurves() const noexcept;
/**
* @brief Export a MIDI Name document describing the currently loaded SFZ file.
* @since 0.3.1
*
* @param model The model name used if a non-empty string, otherwise generated.
*
* @return A newly allocated XML string, which must be freed after use.
*/
std::string exportMidnam(const std::string& model) const noexcept;
/** /**
* @brief Return a list of unsupported opcodes, if any. * @brief Return a list of unsupported opcodes, if any.
* @since 0.2.0 * @since 0.2.0
@ -990,7 +980,7 @@ public:
* *
* @return A XML string. * @return A XML string.
*/ */
std::string exportMidnam(const char* model); std::string exportMidnam(const std::string& model) const;
/** /**
* @addtogroup Messaging * @addtogroup Messaging

View file

@ -110,11 +110,6 @@ int sfz::Sfizz::getNumCurves() const noexcept
return synth->synth.getNumCurves(); return synth->synth.getNumCurves();
} }
std::string sfz::Sfizz::exportMidnam(const std::string& model) const noexcept
{
return synth->synth.exportMidnam(model);
}
const std::vector<std::string>& sfz::Sfizz::getUnknownOpcodes() const noexcept const std::vector<std::string>& sfz::Sfizz::getUnknownOpcodes() const noexcept
{ {
return synth->synth.getUnknownOpcodes(); return synth->synth.getUnknownOpcodes();
@ -366,7 +361,7 @@ void sfz::Sfizz::clearExternalDefinitions()
synth->synth.getParser().clearExternalDefinitions(); synth->synth.getParser().clearExternalDefinitions();
} }
std::string sfz::Sfizz::exportMidnam(const char* model) std::string sfz::Sfizz::exportMidnam(const std::string& model) const
{ {
return synth->synth.exportMidnam(model); return synth->synth.exportMidnam(model);
} }