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;
AudioEngine::instance ()->stop ();
AudioEngine::destroy ();
ARDOUR::cleanup ();
return 0;
}

View File

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

View File

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

View File

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

View File

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

View File

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