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

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

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

revision 484 by capela, Tue Mar 22 12:55:29 2005 UTC revision 490 by capela, Fri Apr 1 00:34:58 2005 UTC
# Line 50  qsamplerChannel::qsamplerChannel ( qsamp Line 50  qsamplerChannel::qsamplerChannel ( qsamp
50  //  m_sInstrumentFile   = m_sInstrumentName;  //  m_sInstrumentFile   = m_sInstrumentName;
51          m_iInstrumentNr     = -1;          m_iInstrumentNr     = -1;
52          m_iInstrumentStatus = -1;          m_iInstrumentStatus = -1;
53          m_sMidiDriver       = "Alsa";   // DEPRECATED.          m_sMidiDriver       = "ALSA";
54          m_iMidiDevice       = -1;          m_iMidiDevice       = -1;
55          m_iMidiPort         = -1;          m_iMidiPort         = -1;
56          m_iMidiChannel      = -1;          m_iMidiChannel      = -1;
57          m_sAudioDriver      = "Alsa";   // DEPRECATED.          m_sAudioDriver      = "ALSA";
58          m_iAudioDevice      = -1;          m_iAudioDevice      = -1;
59          m_fVolume           = 0.0;          m_fVolume           = 0.0;
60    
# Line 131  bool qsamplerChannel::removeChannel (voi Line 131  bool qsamplerChannel::removeChannel (voi
131                          m_iChannelID = -1;                          m_iChannelID = -1;
132                  }                  }
133          }          }
134            
135          // Return whether we've removed the channel...          // Return whether we've removed the channel...
136          return (m_iChannelID < 0);          return (m_iChannelID < 0);
137  }  }
# Line 168  bool qsamplerChannel::loadEngine ( const Line 168  bool qsamplerChannel::loadEngine ( const
168                  return false;                  return false;
169          if (m_iInstrumentStatus == 100 && m_sEngineName == sEngineName)          if (m_iInstrumentStatus == 100 && m_sEngineName == sEngineName)
170                  return true;                  return true;
171                    
172          if (::lscp_load_engine(client(), sEngineName.latin1(), m_iChannelID) != LSCP_OK) {          if (::lscp_load_engine(client(), sEngineName.latin1(), m_iChannelID) != LSCP_OK) {
173                  appendMessagesClient("lscp_load_engine");                  appendMessagesClient("lscp_load_engine");
174                  return false;                  return false;
# Line 221  bool qsamplerChannel::loadInstrument ( c Line 221  bool qsamplerChannel::loadInstrument ( c
221    
222          appendMessages(QObject::tr("Instrument: \"%1\" (%2).")          appendMessages(QObject::tr("Instrument: \"%1\" (%2).")
223                  .arg(sInstrumentFile).arg(iInstrumentNr));                  .arg(sInstrumentFile).arg(iInstrumentNr));
224                    
225          return setInstrument(sInstrumentFile, iInstrumentNr);          return setInstrument(sInstrumentFile, iInstrumentNr);
226  }  }
227    
# Line 472  bool qsamplerChannel::updateChannelInfo Line 472  bool qsamplerChannel::updateChannelInfo
472                  m_sInstrumentFile = QString::null;                  m_sInstrumentFile = QString::null;
473                  m_sInstrumentName = QString::null;                  m_sInstrumentName = QString::null;
474          }          }
475            
476          // FIXME: DEPRECATED...          // Time for device info grabbing...
477          lscp_device_info_t *pDeviceInfo;          lscp_device_info_t *pDeviceInfo;
478          const QString sNone = QObject::tr("(none)");          const QString sNone = QObject::tr("(none)");
479          // Audio device driver type.          // Audio device driver type.
# Line 520  bool qsamplerChannel::channelSetup ( QWi Line 520  bool qsamplerChannel::channelSetup ( QWi
520          bool bResult = false;          bool bResult = false;
521    
522          appendMessages(QObject::tr("setup..."));          appendMessages(QObject::tr("setup..."));
523            
524          qsamplerChannelForm *pChannelForm = new qsamplerChannelForm(pParent);          qsamplerChannelForm *pChannelForm = new qsamplerChannelForm(pParent);
525          if (pChannelForm) {          if (pChannelForm) {
526                  pChannelForm->setup(this);                  pChannelForm->setup(this);

Legend:
Removed from v.484  
changed lines
  Added in v.490

  ViewVC Help
Powered by ViewVC