/* * Start the plugin. It's hard to say if we want OLA running if there aren't * any output universes active. */ void OLAOut::init() { // TODO: load this from a savefile at some point for (unsigned int i = 1; i <= K_UNIVERSE_COUNT; ++i) m_output_list.append(i); QSettings settings; bool es = settings.value("OLAOut/embedded").toBool(); // Make sure the thread is started the first time round m_embedServer = !es; // This should load from the settings when it is made setServerEmbedded(es); }
/* * Start the plugin. It's hard to say if we want OLA running if there aren't * any output universes active. */ void OLAOut::init() { m_embedServer = false; m_thread = NULL; ola::InitLogging(ola::OLA_LOG_WARN, new ola::QLCLogDestination()); // TODO: load this from a savefile at some point for (unsigned int i = 1; i <= K_UNIVERSE_COUNT; ++i) m_output_list.append(i); QSettings settings; bool es = settings.value("OLAOut/embedded").toBool(); // Make sure the thread is started the first time round m_embedServer = !es; // This should load from the settings when it is made setServerEmbedded(es); }
/** * Start the plugin. It's hard to say if we want OLA running if there aren't * any output universes active. */ void OlaIO::init() { m_embedServer = false; m_thread = NULL; ola::InitLogging(ola::OLA_LOG_WARN, new ola::QLCLogDestination()); // TODO: load this from a savefile at some point for (unsigned int i = 1; i <= UNIVERSE_COUNT; ++i) m_outputs.append(i); bool es = false; QSettings settings; QVariant var = settings.value(SETTINGS_EMBEDDED); if (var.isValid() == true) es = settings.value(SETTINGS_EMBEDDED).toBool(); // Make sure the thread is started the first time round m_embedServer = !es; // This should load from the settings when it is made setServerEmbedded(es); }