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:
parent
bfa13ad714
commit
a8c2585cdc
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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 ();
|
|
||||||
}
|
}
|
||||||
|
@ -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 ();
|
||||||
|
@ -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;
|
||||||
|
@ -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.
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user