Print a warning when using Ardour

This commit is contained in:
Robbert van der Helm
2020-12-30 22:41:47 +01:00
parent ef53e3b050
commit 8d79bcfa02
2 changed files with 13 additions and 1 deletions
+12
View File
@@ -20,6 +20,8 @@
#include "vst3-impls/plugin-factory.h"
#include "vst3-impls/plugin-proxy.h"
using namespace std::literals::string_literals;
// There are still some design decisions that need some more thought
// TODO: The documentation mentions that private communication through VST3's
// message system should be handled on a separate timer thread. Do we
@@ -125,6 +127,16 @@ Vst3PluginBridge::Vst3PluginBridge()
plugin_factory->host_application->getName(name);
}
// TODO: Remove this warning ocne Ardour supports multiple
// inputs and outputs
if (result == Steinberg::kResultOk && name == u"Ardour"s) {
logger.log(
"WARNING: Ardour currently does not support "
"plugins with multiple inputs or outputs. If you "
"get a Wine crash dialog or a plugin causes Ardour "
"to freeze, then this is likely the cause.");
}
return YaHostApplication::GetNameResponse{
.result = result,
.name = tchar_pointer_to_u16string(name),