diff --git a/src/sfizz.hpp b/src/sfizz.hpp index f06e1867..7b5a250a 100644 --- a/src/sfizz.hpp +++ b/src/sfizz.hpp @@ -242,16 +242,6 @@ public: */ 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. * @since 0.2.0 @@ -990,7 +980,7 @@ public: * * @return A XML string. */ - std::string exportMidnam(const char* model); + std::string exportMidnam(const std::string& model) const; /** * @addtogroup Messaging diff --git a/src/sfizz/sfizz.cpp b/src/sfizz/sfizz.cpp index d4e301ae..5260caf7 100644 --- a/src/sfizz/sfizz.cpp +++ b/src/sfizz/sfizz.cpp @@ -110,11 +110,6 @@ int sfz::Sfizz::getNumCurves() const noexcept return synth->synth.getNumCurves(); } -std::string sfz::Sfizz::exportMidnam(const std::string& model) const noexcept -{ - return synth->synth.exportMidnam(model); -} - const std::vector& sfz::Sfizz::getUnknownOpcodes() const noexcept { return synth->synth.getUnknownOpcodes(); @@ -366,7 +361,7 @@ void sfz::Sfizz::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); }