Update notifications for yabridge 4.0

This commit is contained in:
Robbert van der Helm
2022-06-08 14:45:31 +02:00
parent 6ad78148ff
commit c598ca08e1
3 changed files with 13 additions and 15 deletions
+9 -13
View File
@@ -206,15 +206,13 @@ class PluginBridge {
init_msg init_msg
<< " With a low memory locking limit, yabridge may not be" << " With a low memory locking limit, yabridge may not be"
<< std::endl; << std::endl;
init_msg << " be able to map enough shared memory for its " init_msg << " be able to lock its shared memory audio "
"audio buffers." "buffers into";
init_msg << " main memory. Performance may be degraded until "
"you fix "
<< std::endl; << std::endl;
init_msg init_msg << " this. Check the readme for instructions on how "
<< " Plugins with many input or output channels may cause" "to do that."
<< std::endl;
init_msg << " yabridge to crash until you fix this. Check the"
<< std::endl;
init_msg << " readme for instructions on how to do that."
<< std::endl; << std::endl;
init_msg << std::endl; init_msg << std::endl;
@@ -223,9 +221,9 @@ class PluginBridge {
"The current memlock limit is set to " + "The current memlock limit is set to " +
std::to_string(*memlock_limit) + std::to_string(*memlock_limit) +
" bytes. This means that you have not yet set up " " bytes. This means that you have not yet set up "
"realtime privileges for your user, and some plugins " "realtime privileges for your user, and performance "
"may cause your DAW to crash until you fix this. Check " "may be degraded until you fix this. Check the readme "
"the readme for instructions on how to do that.", "for instructions on how to do that.",
std::nullopt); std::nullopt);
} }
} else { } else {
@@ -388,8 +386,6 @@ class PluginBridge {
// Also show a desktop notification so users running from // Also show a desktop notification so users running from
// the GUI get a heads up // the GUI get a heads up
// FIXME: Go through these messages and update them to
// reflect the chainloading changes
send_notification( send_notification(
"Failed to start the Wine plugin host", "Failed to start the Wine plugin host",
"Check yabridge's output for more information on what " "Check yabridge's output for more information on what "
+2 -1
View File
@@ -56,7 +56,8 @@ void log_init_error(const std::exception& error, const fs::path& plugin_path) {
// above message // above message
send_notification( send_notification(
"Failed to initialize VST2 plugin", "Failed to initialize VST2 plugin",
error.what() + "\nCheck the plugin's output for more information"s, error.what() +
"\nCheck the plugin's output in a terminal for more information"s,
plugin_path); plugin_path);
} }
+2 -1
View File
@@ -81,7 +81,8 @@ void log_init_exception(const std::exception& error,
// above message // above message
send_notification( send_notification(
"Failed to initialize VST3 plugin", "Failed to initialize VST3 plugin",
error.what() + "\nCheck the plugin's output for more information"s, error.what() +
"\nCheck the plugin's output in a terminal for more information"s,
plugin_path); plugin_path);
} }