remove AudioEngine::destroy() calls from various test/util code

ARDOUR::cleanup() does this, and the engine must exist during port deregistration.
This commit is contained in:
Paul Davis 2023-06-30 12:58:43 -06:00
parent bfa13ad714
commit a8c2585cdc
6 changed files with 1 additions and 10 deletions

View File

@ -275,6 +275,6 @@ main (int argc, char* argv[])
delete s; delete s;
AudioEngine::instance ()->stop (); AudioEngine::instance ()->stop ();
AudioEngine::destroy (); ARDOUR::cleanup ();
return 0; return 0;
} }

View File

@ -36,8 +36,6 @@ AudioEngineTest::test_backends ()
i != backends.end(); ++i) { i != backends.end(); ++i) {
print_audio_backend_info(*i); print_audio_backend_info(*i);
} }
AudioEngine::destroy ();
} }
void void
@ -56,6 +54,4 @@ AudioEngineTest::test_start ()
Glib::usleep(2000); Glib::usleep(2000);
CPPUNIT_ASSERT (engine->stop () == 0); CPPUNIT_ASSERT (engine->stop () == 0);
AudioEngine::destroy ();
} }

View File

@ -111,8 +111,6 @@ int main (int argc, char* argv[])
AudioEngine::instance()->stop (); AudioEngine::instance()->stop ();
AudioEngine::destroy ();
delete test_ui; delete test_ui;
ARDOUR::cleanup (); ARDOUR::cleanup ();

View File

@ -44,7 +44,6 @@ int main (int argc, char* argv[])
AudioEngine::instance()->remove_session (); AudioEngine::instance()->remove_session ();
delete s; delete s;
AudioEngine::instance()->stop (); AudioEngine::instance()->stop ();
AudioEngine::destroy ();
delete test_ui; delete test_ui;
ARDOUR::cleanup (); ARDOUR::cleanup ();
return 0; return 0;

View File

@ -116,7 +116,6 @@ stop_and_destroy_backend ()
{ {
AudioEngine::instance()->remove_session (); AudioEngine::instance()->remove_session ();
AudioEngine::instance()->stop (); AudioEngine::instance()->stop ();
AudioEngine::destroy ();
} }
/** @param dir Session directory. /** @param dir Session directory.

View File

@ -648,7 +648,6 @@ main (int argc, char** argv)
lua = NULL; lua = NULL;
AudioEngine::instance ()->stop (); AudioEngine::instance ()->stop ();
AudioEngine::destroy ();
ARDOUR::cleanup (); ARDOUR::cleanup ();
delete event_loop; delete event_loop;