mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Add debug output for NSM
Trying to track down https://discourse.ardour.org/t/nsm-ardour-6-session-created-with-ardour-5-wont-open-correctly/105020
This commit is contained in:
parent
0f372e2785
commit
ba9e310d4d
2 changed files with 7 additions and 0 deletions
|
|
@ -685,6 +685,9 @@ ARDOUR_UI::load_from_application_api (const std::string& path)
|
||||||
pathways active causes crashes. So, if the command line was already
|
pathways active causes crashes. So, if the command line was already
|
||||||
set, do nothing here. NSM also uses this code path.
|
set, do nothing here. NSM also uses this code path.
|
||||||
*/
|
*/
|
||||||
|
#ifndef __APPLE__
|
||||||
|
printf ("ARDOUR_UI::load_from_application_api '%s'\n", path.c_str());
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!ARDOUR_COMMAND_LINE::session_name.empty()) {
|
if (!ARDOUR_COMMAND_LINE::session_name.empty()) {
|
||||||
return;
|
return;
|
||||||
|
|
@ -712,6 +715,7 @@ ARDOUR_UI::load_from_application_api (const std::string& path)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nsm) {
|
if (nsm) {
|
||||||
|
printf ("ARDOUR_UI::load_from_application_api use NSM\n");
|
||||||
if (!AudioEngine::instance()->set_backend("JACK", "", "")) {
|
if (!AudioEngine::instance()->set_backend("JACK", "", "")) {
|
||||||
error << _("NSM: The JACK backend is mandatory and can not be loaded.") << endmsg;
|
error << _("NSM: The JACK backend is mandatory and can not be loaded.") << endmsg;
|
||||||
return;
|
return;
|
||||||
|
|
@ -740,6 +744,7 @@ ARDOUR_UI::load_from_application_api (const std::string& path)
|
||||||
psd.start ();
|
psd.start ();
|
||||||
|
|
||||||
post_engine ();
|
post_engine ();
|
||||||
|
printf ("ARDOUR_UI::load_from_application_api NSM connected to engine\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* the mechanisms that can result is this being called are only
|
/* the mechanisms that can result is this being called are only
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,8 @@ NSM_Client::command_open(const char* name,
|
||||||
* synchronous. However, there's no return value available.
|
* synchronous. However, there's no return value available.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
printf ("NSM_Client::command_open '%s'\n", name);
|
||||||
|
|
||||||
Gtkmm2ext::Application::instance()->ShouldLoad (name);
|
Gtkmm2ext::Application::instance()->ShouldLoad (name);
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue