Print the plugin type on initialization

This commit is contained in:
Robbert van der Helm
2020-11-30 23:10:50 +01:00
parent f9bb3822de
commit 1c5a9423d2
4 changed files with 10 additions and 1 deletions
+1
View File
@@ -229,6 +229,7 @@ host_sources = [
'src/common/serialization/vst2.cpp', 'src/common/serialization/vst2.cpp',
'src/common/configuration.cpp', 'src/common/configuration.cpp',
'src/common/logging.cpp', 'src/common/logging.cpp',
'src/common/plugins.cpp',
'src/common/utils.cpp', 'src/common/utils.cpp',
'src/wine-host/bridges/vst2.cpp', 'src/wine-host/bridges/vst2.cpp',
'src/wine-host/editor.cpp', 'src/wine-host/editor.cpp',
+1
View File
@@ -617,6 +617,7 @@ void Vst2PluginBridge::set_parameter(AEffect* /*plugin*/,
void Vst2PluginBridge::log_init_message() { void Vst2PluginBridge::log_init_message() {
std::stringstream init_msg; std::stringstream init_msg;
// TODO: This should also list the plugin type
init_msg << "Initializing yabridge version " << yabridge_git_version init_msg << "Initializing yabridge version " << yabridge_git_version
<< std::endl; << std::endl;
init_msg << "host: '" << vst_host->path().string() << "'" init_msg << "host: '" << vst_host->path().string() << "'"
+3 -1
View File
@@ -190,7 +190,9 @@ void GroupBridge::accept_requests() {
// The plugin has to be initiated on the IO context's thread because // The plugin has to be initiated on the IO context's thread because
// this has to be done on the same thread that's handling messages, // this has to be done on the same thread that's handling messages,
// and all window messages have to be handled from the same thread. // and all window messages have to be handled from the same thread.
logger.log("Received request to host '" + request.plugin_path + logger.log("Received request to host " +
plugin_type_to_string(request.plugin_type) +
" plugin at '" + request.plugin_path +
"' using socket endpoint base directory '" + "' using socket endpoint base directory '" +
request.endpoint_base_dir + "'"); request.endpoint_base_dir + "'");
try { try {
+5
View File
@@ -55,6 +55,9 @@ main(int argc, char* argv[]) {
} }
// TODO: Do something with the plugin type // TODO: Do something with the plugin type
// TODO: On the Wine side of things, we should only allow hosting VST3
// plugins when the Meson build option is enabled (because, well,
// otherwise we'd get compile errors)
const PluginType plugin_type = plugin_type_from_string(argv[1]); const PluginType plugin_type = plugin_type_from_string(argv[1]);
const std::string plugin_location(argv[2]); const std::string plugin_location(argv[2]);
const std::string socket_endpoint_path(argv[3]); const std::string socket_endpoint_path(argv[3]);
@@ -64,6 +67,8 @@ main(int argc, char* argv[]) {
<< " (32-bit compatibility mode)" << " (32-bit compatibility mode)"
#endif #endif
<< std::endl; << std::endl;
std::cout << "Preparing to load " << plugin_type_to_string(plugin_type)
<< " plugin at '" << plugin_location << "'" << std::endl;
// As explained in `Vst2Bridge`, the plugin has to be initialized in the // As explained in `Vst2Bridge`, the plugin has to be initialized in the
// same thread as the one that calls `io_context.run()`. This setup is // same thread as the one that calls `io_context.run()`. This setup is