390 |
appendMessagesColor(tr("Notify event: %1 data: %2") |
appendMessagesColor(tr("Notify event: %1 data: %2") |
391 |
.arg(::lscp_event_to_text(pEvent->event())) |
.arg(::lscp_event_to_text(pEvent->event())) |
392 |
.arg(pEvent->data()), "#996699"); |
.arg(pEvent->data()), "#996699"); |
393 |
|
if (pEvent->event() == LSCP_EVENT_CHANNEL_INFO) { |
394 |
|
int iChannelID = pEvent->data().toInt(); |
395 |
|
qsamplerChannelStrip *pChannelStrip = channelStrip(iChannelID); |
396 |
|
if (pChannelStrip) |
397 |
|
channelStripChanged(pChannelStrip); |
398 |
|
} |
399 |
} |
} |
400 |
} |
} |
401 |
|
|
2025 |
::lscp_client_set_timeout(m_pClient, m_pOptions->iServerTimeout); |
::lscp_client_set_timeout(m_pClient, m_pOptions->iServerTimeout); |
2026 |
appendMessages(tr("Client receive timeout is set to %1 msec.").arg(::lscp_client_get_timeout(m_pClient))); |
appendMessages(tr("Client receive timeout is set to %1 msec.").arg(::lscp_client_get_timeout(m_pClient))); |
2027 |
|
|
2028 |
|
// Subscribe to channel info change notifications... |
2029 |
|
if (::lscp_client_subscribe(m_pClient, LSCP_EVENT_CHANNEL_INFO) != LSCP_OK) |
2030 |
|
appendMessagesClient("lscp_client_subscribe"); |
2031 |
|
|
2032 |
// We may stop scheduling around. |
// We may stop scheduling around. |
2033 |
stopSchedule(); |
stopSchedule(); |
2034 |
|
|
2042 |
// if visible, that we're ready... |
// if visible, that we're ready... |
2043 |
if (m_pDeviceForm && m_pDeviceForm->isVisible()) |
if (m_pDeviceForm && m_pDeviceForm->isVisible()) |
2044 |
m_pDeviceForm->setClient(m_pClient); |
m_pDeviceForm->setClient(m_pClient); |
2045 |
|
|
2046 |
// Is any session pending to be loaded? |
// Is any session pending to be loaded? |
2047 |
if (!m_pOptions->sSessionFile.isEmpty()) { |
if (!m_pOptions->sSessionFile.isEmpty()) { |
2048 |
// Just load the prabably startup session... |
// Just load the prabably startup session... |
2084 |
closeSession(false); |
closeSession(false); |
2085 |
|
|
2086 |
// Close us as a client... |
// Close us as a client... |
2087 |
lscp_client_destroy(m_pClient); |
::lscp_client_unsubscribe(m_pClient, LSCP_EVENT_CHANNEL_INFO); |
2088 |
|
::lscp_client_destroy(m_pClient); |
2089 |
m_pClient = NULL; |
m_pClient = NULL; |
2090 |
|
|
2091 |
// Log final here. |
// Log final here. |