/[svn]/qsampler/trunk/src/qsamplerMainForm.ui.h
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerMainForm.ui.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 661 by capela, Fri Jun 17 22:43:56 2005 UTC revision 662 by capela, Sat Jun 18 10:46:57 2005 UTC
# Line 390  void qsamplerMainForm::customEvent ( QCu Line 390  void qsamplerMainForm::customEvent ( QCu
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    
# Line 2019  bool qsamplerMainForm::startClient (void Line 2025  bool qsamplerMainForm::startClient (void
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    
# Line 2032  bool qsamplerMainForm::startClient (void Line 2042  bool qsamplerMainForm::startClient (void
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...
# Line 2074  void qsamplerMainForm::stopClient (void) Line 2084  void qsamplerMainForm::stopClient (void)
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.

Legend:
Removed from v.661  
changed lines
  Added in v.662

  ViewVC Help
Powered by ViewVC