/[svn]/qsampler/trunk/src/qsamplerDevice.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerDevice.cpp

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

revision 467 by capela, Tue Mar 15 23:54:14 2005 UTC revision 468 by capela, Wed Mar 16 09:49:37 2005 UTC
# Line 302  qsamplerDevicePortList& qsamplerDevice:: Line 302  qsamplerDevicePortList& qsamplerDevice::
302  // Device parameter dependencies refreshner.  // Device parameter dependencies refreshner.
303  int qsamplerDevice::refreshParams ( lscp_client_t *pClient )  int qsamplerDevice::refreshParams ( lscp_client_t *pClient )
304  {  {
305            // This should only make sense for scratch devices...
306            if (m_iDeviceID >= 0)
307                return 0;
308          // Refresh all parameters that have dependencies...          // Refresh all parameters that have dependencies...
309          int iParams = 0;          int iParams = 0;
310          qsamplerDeviceParamMap::ConstIterator iter;          qsamplerDeviceParamMap::ConstIterator iter;
# Line 315  int qsamplerDevice::refreshParams ( lscp Line 318  int qsamplerDevice::refreshParams ( lscp
318  // Device port/channel list refreshner.  // Device port/channel list refreshner.
319  int qsamplerDevice::refreshPorts ( lscp_client_t *pClient )  int qsamplerDevice::refreshPorts ( lscp_client_t *pClient )
320  {  {
321            // This should only make sense for actual devices...
322            if (m_iDeviceID < 0)
323                return 0;
324          // Port/channel count determination...          // Port/channel count determination...
325          int iPorts = 0;          int iPorts = 0;
326          switch (m_deviceType) {          switch (m_deviceType) {
# Line 340  int qsamplerDevice::refreshPorts ( lscp_ Line 346  int qsamplerDevice::refreshPorts ( lscp_
346  int qsamplerDevice::refreshDepends ( lscp_client_t *pClient,  int qsamplerDevice::refreshDepends ( lscp_client_t *pClient,
347          const QString& sParam )          const QString& sParam )
348  {  {
349            // This should only make sense for scratch devices...
350            if (m_iDeviceID >= 0)
351                return 0;
352          // Refresh all parameters that depend on this one...          // Refresh all parameters that depend on this one...
353          int iDepends = 0;          int iDepends = 0;
354          qsamplerDeviceParamMap::ConstIterator iter;          qsamplerDeviceParamMap::ConstIterator iter;
# Line 378  int qsamplerDevice::refreshParam ( lscp_ Line 387  int qsamplerDevice::refreshParam ( lscp_
387          pDepends[iDepend].key   = NULL;          pDepends[iDepend].key   = NULL;
388          pDepends[iDepend].value = NULL;          pDepends[iDepend].value = NULL;
389    
 #if 0  
390          // FIXME: Some parameter dependencies (e.g.ALSA CARD)          // FIXME: Some parameter dependencies (e.g.ALSA CARD)
391          // are blocking for no reason, causing timeout-crashes.          // are blocking for no reason, causing potential timeout-crashes.
392            // hopefully this gets mitigated if this dependency hell is only
393            // carried out for scratch devices...
394    
395          // Retrieve some modern parameters...          // Retrieve some modern parameters...
396          lscp_param_info_t *pParamInfo = NULL;          lscp_param_info_t *pParamInfo = NULL;
# Line 400  int qsamplerDevice::refreshParam ( lscp_ Line 410  int qsamplerDevice::refreshParam ( lscp_
410                  param = qsamplerDeviceParam(pParamInfo, QString(param.value));                  param = qsamplerDeviceParam(pParamInfo, QString(param.value));
411                  iRefresh++;                  iRefresh++;
412          }          }
413  #endif  
414          // Free used parameter array.          // Free used parameter array.
415          delete pDepends;          delete pDepends;
416    
# Line 644  qsamplerDeviceParamTable::qsamplerDevice Line 654  qsamplerDeviceParamTable::qsamplerDevice
654          // Set read-onlyness of each column          // Set read-onlyness of each column
655          QTable::setColumnReadOnly(0, true);          QTable::setColumnReadOnly(0, true);
656          QTable::setColumnReadOnly(1, true);          QTable::setColumnReadOnly(1, true);
657  //  QTable::setColumnReadOnly(2, true); -- of course not.  //  QTable::setColumnReadOnly(2, false); -- of course not.
658          QTable::setColumnStretchable(1, true);          QTable::setColumnStretchable(1, true);
659  }  }
660    

Legend:
Removed from v.467  
changed lines
  Added in v.468

  ViewVC Help
Powered by ViewVC