assert (_name.find_first_of (':') == std::string::npos);
- if (!port_engine.available ()) {
+ if (!port_manager->running ()) {
DEBUG_TRACE (DEBUG::Ports, string_compose ("port-engine n/a postpone registering %1\n", name()));
_port_handle = 0; // created during ::reestablish() later
} else if ((_port_handle = port_engine.register_port (_name, t, _flags)) == 0) {
return false;
}
- if (!port_engine.available()) {
+ if (!port_manager->running()) {
return false;
}
int
Port::get_connections (std::vector<std::string> & c) const
{
- if (!port_engine.available()) {
+ if (!port_manager->running()) {
c.insert (c.end(), _connections.begin(), _connections.end());
return c.size();
}
void
Route::clear_processors (Placement p)
{
- if (!_session.engine().connected()) {
+ if (!_session.engine().running()) {
return;
}
return 0;
}
- if (!_session.engine().connected()) {
+ if (!_session.engine().running()) {
return 1;
}
return 1;
}
- if (!AudioEngine::instance()->connected() || !old || !sub) {
+ if (!AudioEngine::instance()->running() || !old || !sub) {
return 1;
}
{
ProcessorList deleted;
- if (!_session.engine().connected()) {
+ if (!_session.engine().running()) {
return 1;
}
/* list could have been demolished while we dropped the lock
so start over.
*/
- if (_session.engine().connected()) {
+ if (_session.engine().running()) {
/* i/o processors cannot be removed if the engine is not running
* so don't live-loop in case the engine is N/A or dies
*/
_worst_output_latency = 0;
- if (!_engine.connected()) {
+ if (!_engine.running()) {
return;
}
_worst_input_latency = 0;
- if (!_engine.connected()) {
+ if (!_engine.running()) {
return;
}
/* we are ready to go ... */
- if (!_engine.connected()) {
+ if (!_engine.running()) {
return -1;
}
because there will be no process callbacks to deliver stuff from
*/
- if (_engine.connected() && !_engine.freewheeling()) {
+ if (_engine.running() && !_engine.freewheeling()) {
// need to queue this in the next RT cycle
_send_timecode_update = true;