mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-15 07:53:55 +02:00
Show desktop notification for the memlock warning
Since most people don't try running things in a terminal.
This commit is contained in:
@@ -189,9 +189,21 @@ class PluginBridge {
|
|||||||
init_msg
|
init_msg
|
||||||
<< " Plugins with many input or output channels may cause"
|
<< " Plugins with many input or output channels may cause"
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
init_msg << " yabridge to crash until you fix this."
|
init_msg << " yabridge to crash until you fix this. Check the"
|
||||||
|
<< std::endl;
|
||||||
|
init_msg << " readme for instructions on how to do this."
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
init_msg << std::endl;
|
init_msg << std::endl;
|
||||||
|
|
||||||
|
send_notification(
|
||||||
|
"Low memory locking limit detected",
|
||||||
|
"The current memlock limit is set to " +
|
||||||
|
std::to_string(*memlock_limit) +
|
||||||
|
" bytes. This means that you have not yet set up "
|
||||||
|
"realtime privileges for your user, and some plugins "
|
||||||
|
"may cause your DAW to crash until you fix this. Check "
|
||||||
|
"the readme for instructions on how to do that.",
|
||||||
|
false);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
init_msg
|
init_msg
|
||||||
|
|||||||
Reference in New Issue
Block a user