MCPcopy Create free account
hub / github.com/audacity/audacity / SavePresetToFile

Method SavePresetToFile

libraries/lib-vst3/VST3Wrapper.cpp:700–713  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

698}
699
700void VST3Wrapper::SavePresetToFile(const wxString& filepath) const
701{
702 using namespace Steinberg;
703
704 auto fileStream = owned(Vst::FileStream::open(filepath.c_str(), "wb"));
705 if(!fileStream)
706 throw FileException(FileException::Cause::Open, filepath);
707
708 if(!SavePresetToStream(fileStream))
709 throw SimpleMessageBoxException(
710 ExceptionType::BadEnvironment,
711 XO("Failed to save VST3 preset to file"),
712 XO("Error"));
713}
714
715
716bool VST3Wrapper::LoadPresetFromStream(Steinberg::IBStream* fileStream)

Callers 1

ExportPresetsMethod · 0.80

Calls 3

FileExceptionFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected