/[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 343 by capela, Tue Jan 18 12:32:01 2005 UTC revision 404 by capela, Wed Feb 23 13:47:47 2005 UTC
# Line 38  Line 38 
38  //-------------------------------------------------------------------------  //-------------------------------------------------------------------------
39  // qsamplerChannel - Sampler channel structure.  // qsamplerChannel - Sampler channel structure.
40  //  //
 bool qsamplerChannel::g_bInstrumentNames = false;  
41    
42  // Constructor.  // Constructor.
43  qsamplerChannel::qsamplerChannel ( qsamplerMainForm *pMainForm, int iChannelID )  qsamplerChannel::qsamplerChannel ( qsamplerMainForm *pMainForm, int iChannelID )
# Line 46  qsamplerChannel::qsamplerChannel ( qsamp Line 45  qsamplerChannel::qsamplerChannel ( qsamp
45      m_pMainForm  = pMainForm;      m_pMainForm  = pMainForm;
46      m_iChannelID = iChannelID;      m_iChannelID = iChannelID;
47    
48  //  m_sEngineName       = QObject::tr("(No engine)");  //  m_sEngineName       = noEngineName();
49  //  m_sInstrumentFile   = QObject::tr("(No instrument)");  //  m_sInstrumentName   = noInstrumentName();
50    //  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";   // DEPRECATED.
# Line 97  bool qsamplerChannel::addChannel (void) Line 97  bool qsamplerChannel::addChannel (void)
97          m_iChannelID = ::lscp_add_channel(client());          m_iChannelID = ::lscp_add_channel(client());
98          if (m_iChannelID < 0) {          if (m_iChannelID < 0) {
99              appendMessagesClient("lscp_add_channel");              appendMessagesClient("lscp_add_channel");
100              appendMessagesError(QObject::tr("Could not create the new channel.\n\nSorry."));              appendMessagesError(QObject::tr("Could not add channel.\n\nSorry."));
101          }   // Otherwise it's created...          }   // Otherwise it's created...
102          else appendMessages(QObject::tr("Channel %1 created.").arg(m_iChannelID));          else appendMessages(QObject::tr("added."));
103      }      }
104    
105      // Return whether we're a valid channel...      // Return whether we're a valid channel...
# Line 120  bool qsamplerChannel::removeChannel (voi Line 120  bool qsamplerChannel::removeChannel (voi
120              appendMessagesError(QObject::tr("Could not remove channel.\n\nSorry."));              appendMessagesError(QObject::tr("Could not remove channel.\n\nSorry."));
121          } else {          } else {
122              // Otherwise it's removed.              // Otherwise it's removed.
123              appendMessages(QObject::tr("Channel %1 removed.").arg(m_iChannelID));              appendMessages(QObject::tr("removed."));
124              m_iChannelID = -1;              m_iChannelID = -1;
125          }          }
126      }      }
# Line 159  bool qsamplerChannel::loadEngine ( const Line 159  bool qsamplerChannel::loadEngine ( const
159  {  {
160      if (client() == NULL || m_iChannelID < 0)      if (client() == NULL || m_iChannelID < 0)
161          return false;          return false;
162            if (m_iInstrumentStatus == 100 && m_sEngineName == sEngineName)
163                return true;
164                
165      if (::lscp_load_engine(client(), sEngineName.latin1(), m_iChannelID) != LSCP_OK) {      if (::lscp_load_engine(client(), sEngineName.latin1(), m_iChannelID) != LSCP_OK) {
166          appendMessagesClient("lscp_load_engine");          appendMessagesClient("lscp_load_engine");
167          return false;          return false;
168      }      }
169        appendMessages(QObject::tr("Engine: %1.").arg(sEngineName));
170    
171      m_sEngineName = sEngineName;      m_sEngineName = sEngineName;
172      return true;      return true;
# Line 182  int qsamplerChannel::instrumentNr (void) Line 185  int qsamplerChannel::instrumentNr (void)
185      return m_iInstrumentNr;      return m_iInstrumentNr;
186  }  }
187    
188    // Instrument name accessor.
189    QString& qsamplerChannel::instrumentName (void)
190    {
191        return m_sInstrumentName;
192    }
193    
194  // Instrument status accessor.  // Instrument status accessor.
195  int qsamplerChannel::instrumentStatus (void)  int qsamplerChannel::instrumentStatus (void)
196  {  {
# Line 193  bool qsamplerChannel::loadInstrument ( c Line 202  bool qsamplerChannel::loadInstrument ( c
202  {  {
203      if (client() == NULL || m_iChannelID < 0)      if (client() == NULL || m_iChannelID < 0)
204          return false;          return false;
205            if (!isInstrumentFile(sInstrumentFile))
206                return false;
207            if (m_iInstrumentStatus == 100 && m_sInstrumentFile == sInstrumentFile && m_iInstrumentNr == iInstrumentNr)
208                return true;
209    
210      if (::lscp_load_instrument_non_modal(client(), sInstrumentFile.latin1(), iInstrumentNr, m_iChannelID) != LSCP_OK) {      if (::lscp_load_instrument_non_modal(client(), sInstrumentFile.latin1(), iInstrumentNr, m_iChannelID) != LSCP_OK) {
211          appendMessagesClient("lscp_load_instrument");          appendMessagesClient("lscp_load_instrument");
212          return false;          return false;
213      }      }
214    
215        appendMessages(QObject::tr("Instrument: \"%1\" (%2).")
216                    .arg(sInstrumentFile).arg(iInstrumentNr));
217                    
218        return setInstrument(sInstrumentFile, iInstrumentNr);
219    }
220    
221    
222    // Special instrument file/name/number settler.
223    bool qsamplerChannel::setInstrument ( const QString& sInstrumentFile, int iInstrumentNr )
224    {
225      m_sInstrumentFile = sInstrumentFile;      m_sInstrumentFile = sInstrumentFile;
226      m_iInstrumentNr = iInstrumentNr;      m_iInstrumentNr = iInstrumentNr;
227    #ifdef CONFIG_INSTRUMENT_NAME
228        m_sInstrumentName = QString::null;  // We'll get it, maybe later, on channel_info...
229    #else
230        m_sInstrumentName = getInstrumentName(sInstrumentFile, iInstrumentNr, true);
231    #endif
232      m_iInstrumentStatus = 0;      m_iInstrumentStatus = 0;
233    
234      return true;          return true;
235  }  }
236    
237    
# Line 217  bool qsamplerChannel::setMidiDriver ( co Line 245  bool qsamplerChannel::setMidiDriver ( co
245  {  {
246      if (client() == NULL || m_iChannelID < 0)      if (client() == NULL || m_iChannelID < 0)
247          return false;          return false;
248            if (m_iInstrumentStatus == 100 && m_sMidiDriver == sMidiDriver)
249                return true;
250    
251      if (::lscp_set_channel_midi_type(client(), m_iChannelID, sMidiDriver.latin1()) != LSCP_OK) {      if (::lscp_set_channel_midi_type(client(), m_iChannelID, sMidiDriver.latin1()) != LSCP_OK) {
252          appendMessagesClient("lscp_set_channel_midi_type");          appendMessagesClient("lscp_set_channel_midi_type");
253          return false;          return false;
254      }      }
255    
256        appendMessages(QObject::tr("MIDI driver: %1.").arg(sMidiDriver));
257    
258      m_sMidiDriver = sMidiDriver;      m_sMidiDriver = sMidiDriver;
259      return true;      return true;
260  }  }
# Line 238  bool qsamplerChannel::setMidiDevice ( in Line 270  bool qsamplerChannel::setMidiDevice ( in
270  {  {
271      if (client() == NULL || m_iChannelID < 0)      if (client() == NULL || m_iChannelID < 0)
272          return false;          return false;
273            if (m_iInstrumentStatus == 100 && m_iMidiDevice == iMidiDevice)
274                return true;
275    
276      if (::lscp_set_channel_midi_device(client(), m_iChannelID, iMidiDevice) != LSCP_OK) {      if (::lscp_set_channel_midi_device(client(), m_iChannelID, iMidiDevice) != LSCP_OK) {
277          appendMessagesClient("lscp_set_channel_midi_device");          appendMessagesClient("lscp_set_channel_midi_device");
278          return false;          return false;
279      }      }
280    
281        appendMessages(QObject::tr("MIDI device: %1.").arg(iMidiDevice));
282    
283      m_iMidiDevice = iMidiDevice;      m_iMidiDevice = iMidiDevice;
284      return true;      return true;
285  }  }
# Line 259  bool qsamplerChannel::setMidiPort ( int Line 295  bool qsamplerChannel::setMidiPort ( int
295  {  {
296      if (client() == NULL || m_iChannelID < 0)      if (client() == NULL || m_iChannelID < 0)
297          return false;          return false;
298            if (m_iInstrumentStatus == 100 && m_iMidiPort == iMidiPort)
299                return true;
300    
301      if (::lscp_set_channel_midi_port(client(), m_iChannelID, iMidiPort) != LSCP_OK) {      if (::lscp_set_channel_midi_port(client(), m_iChannelID, iMidiPort) != LSCP_OK) {
302          appendMessagesClient("lscp_set_channel_midi_port");          appendMessagesClient("lscp_set_channel_midi_port");
303          return false;          return false;
304      }      }
305    
306        appendMessages(QObject::tr("MIDI port: %1.").arg(iMidiPort));
307    
308      m_iMidiPort = iMidiPort;      m_iMidiPort = iMidiPort;
309      return true;      return true;
310  }  }
# Line 280  bool qsamplerChannel::setMidiChannel ( i Line 320  bool qsamplerChannel::setMidiChannel ( i
320  {  {
321      if (client() == NULL || m_iChannelID < 0)      if (client() == NULL || m_iChannelID < 0)
322          return false;          return false;
323            if (m_iInstrumentStatus == 100 && m_iMidiChannel == iMidiChannel)
324                return true;
325    
326      if (::lscp_set_channel_midi_channel(client(), m_iChannelID, iMidiChannel) != LSCP_OK) {      if (::lscp_set_channel_midi_channel(client(), m_iChannelID, iMidiChannel) != LSCP_OK) {
327          appendMessagesClient("lscp_set_channel_midi_channel");          appendMessagesClient("lscp_set_channel_midi_channel");
328          return false;          return false;
329      }      }
330    
331        appendMessages(QObject::tr("MIDI channel: %1.").arg(iMidiChannel));
332    
333      m_iMidiChannel = iMidiChannel;      m_iMidiChannel = iMidiChannel;
334      return true;      return true;
335  }  }
# Line 301  bool qsamplerChannel::setAudioDevice ( i Line 345  bool qsamplerChannel::setAudioDevice ( i
345  {  {
346      if (client() == NULL || m_iChannelID < 0)      if (client() == NULL || m_iChannelID < 0)
347          return false;          return false;
348            if (m_iInstrumentStatus == 100 && m_iAudioDevice == iAudioDevice)
349                return true;
350    
351      if (::lscp_set_channel_audio_device(client(), m_iChannelID, iAudioDevice) != LSCP_OK) {      if (::lscp_set_channel_audio_device(client(), m_iChannelID, iAudioDevice) != LSCP_OK) {
352          appendMessagesClient("lscp_set_channel_audio_device");          appendMessagesClient("lscp_set_channel_audio_device");
353          return false;          return false;
354      }      }
355    
356        appendMessages(QObject::tr("Audio device: %1.").arg(iAudioDevice));
357    
358      m_iAudioDevice = iAudioDevice;      m_iAudioDevice = iAudioDevice;
359      return true;      return true;
360  }  }
# Line 322  bool qsamplerChannel::setAudioDriver ( c Line 370  bool qsamplerChannel::setAudioDriver ( c
370  {  {
371      if (client() == NULL || m_iChannelID < 0)      if (client() == NULL || m_iChannelID < 0)
372          return false;          return false;
373            if (m_iInstrumentStatus == 100 && m_sAudioDriver == sAudioDriver)
374                return true;
375    
376      if (::lscp_set_channel_audio_type(client(), m_iChannelID, sAudioDriver.latin1()) != LSCP_OK) {      if (::lscp_set_channel_audio_type(client(), m_iChannelID, sAudioDriver.latin1()) != LSCP_OK) {
377          appendMessagesClient("lscp_set_channel_audio_type");          appendMessagesClient("lscp_set_channel_audio_type");
378          return false;          return false;
379      }      }
380    
381        appendMessages(QObject::tr("Audio driver: %1.").arg(sAudioDriver));
382    
383      m_sAudioDriver = sAudioDriver;      m_sAudioDriver = sAudioDriver;
384      return true;      return true;
385  }  }
# Line 343  bool qsamplerChannel::setVolume ( float Line 395  bool qsamplerChannel::setVolume ( float
395  {  {
396      if (client() == NULL || m_iChannelID < 0)      if (client() == NULL || m_iChannelID < 0)
397          return false;          return false;
398            if (m_iInstrumentStatus == 100 && m_fVolume == fVolume)
399                return true;
400    
401      if (::lscp_set_channel_volume(client(), m_iChannelID, fVolume) != LSCP_OK) {      if (::lscp_set_channel_volume(client(), m_iChannelID, fVolume) != LSCP_OK) {
402          appendMessagesClient("lscp_set_channel_volume");          appendMessagesClient("lscp_set_channel_volume");
403          return false;          return false;
404      }      }
405    
406        appendMessages(QObject::tr("Volume: %1.").arg(fVolume));
407    
408      m_fVolume = fVolume;      m_fVolume = fVolume;
409      return true;      return true;
410  }  }
411    
412    
413    // Istrument name remapper.
414    void qsamplerChannel::updateInstrumentName (void)
415    {
416    #ifndef CONFIG_INSTRUMENT_NAME
417            m_sInstrumentName = getInstrumentName(m_sInstrumentFile,
418                    m_iInstrumentNr, (options() && options()->bInstrumentNames));
419    #endif
420    }
421    
422    
423  // Update whole channel info state.  // Update whole channel info state.
424  bool qsamplerChannel::updateChannelInfo (void)  bool qsamplerChannel::updateChannelInfo (void)
425  {  {
# Line 368  bool qsamplerChannel::updateChannelInfo Line 434  bool qsamplerChannel::updateChannelInfo
434          return false;          return false;
435      }      }
436    
437      // Cache in channel information.  #ifdef CONFIG_INSTRUMENT_NAME
438            // We got all actual instrument datum...
439            m_sInstrumentFile = pChannelInfo->instrument_file;
440            m_iInstrumentNr   = pChannelInfo->instrument_nr;
441            m_sInstrumentName = pChannelInfo->instrument_name;
442    #else
443            // First, check if intrument name has changed,
444            // taking care that instrument name lookup might be expensive,
445            // so we better make it only once and when really needed...
446            if ((m_sInstrumentFile != pChannelInfo->instrument_file) ||
447                    (m_iInstrumentNr   != pChannelInfo->instrument_nr)) {
448                    m_sInstrumentFile = pChannelInfo->instrument_file;
449                    m_iInstrumentNr   = pChannelInfo->instrument_nr;
450                    updateInstrumentName();
451            }
452    #endif
453        // Cache in other channel information.
454      m_sEngineName       = pChannelInfo->engine_name;      m_sEngineName       = pChannelInfo->engine_name;
     m_sInstrumentFile   = pChannelInfo->instrument_file;  
     m_iInstrumentNr     = pChannelInfo->instrument_nr;  
455      m_iInstrumentStatus = pChannelInfo->instrument_status;      m_iInstrumentStatus = pChannelInfo->instrument_status;
456      m_iMidiDevice       = pChannelInfo->midi_device;      m_iMidiDevice       = pChannelInfo->midi_device;
457      m_iMidiPort         = pChannelInfo->midi_port;      m_iMidiPort         = pChannelInfo->midi_port;
# Line 381  bool qsamplerChannel::updateChannelInfo Line 461  bool qsamplerChannel::updateChannelInfo
461      // Some sanity checks.      // Some sanity checks.
462      if (m_sEngineName == "NONE")      if (m_sEngineName == "NONE")
463          m_sEngineName = QString::null;          m_sEngineName = QString::null;
464      if (m_sInstrumentFile == "NONE")      if (m_sInstrumentFile == "NONE") {
465          m_sInstrumentFile = QString::null;          m_sInstrumentFile = QString::null;
466            m_sInstrumentName = QString::null;
467            }
468    
469      return true;      return true;
470  }  }
471    
472    
473  // Reset channel method.  // Reset channel method.
474  bool qsamplerChannel::resetChannel (void)  bool qsamplerChannel::channelReset (void)
475  {  {
476      if (client() == NULL || m_iChannelID < 0)      if (client() == NULL || m_iChannelID < 0)
477          return false;          return false;
# Line 399  bool qsamplerChannel::resetChannel (void Line 481  bool qsamplerChannel::resetChannel (void
481          return false;          return false;
482      }      }
483    
484      appendMessages(QObject::tr("Channel %1 reset.").arg(m_iChannelID));      appendMessages(QObject::tr("reset."));
485    
486      return true;      return true;
487  }  }
488    
# Line 409  bool qsamplerChannel::channelSetup ( QWi Line 492  bool qsamplerChannel::channelSetup ( QWi
492  {  {
493      bool bResult = false;      bool bResult = false;
494    
495        appendMessages(QObject::tr("setup..."));
496        
497      qsamplerChannelForm *pChannelForm = new qsamplerChannelForm(pParent);      qsamplerChannelForm *pChannelForm = new qsamplerChannelForm(pParent);
498      if (pChannelForm) {      if (pChannelForm) {
499          pChannelForm->setup(this);          pChannelForm->setup(this);
# Line 423  bool qsamplerChannel::channelSetup ( QWi Line 508  bool qsamplerChannel::channelSetup ( QWi
508  // Redirected messages output methods.  // Redirected messages output methods.
509  void qsamplerChannel::appendMessages( const QString& s )  void qsamplerChannel::appendMessages( const QString& s )
510  {  {
511      if (m_pMainForm) m_pMainForm->appendMessages(s);      if (m_pMainForm)
512                    m_pMainForm->appendMessages(channelName() + ' ' + s);
513  }  }
514    
515  void qsamplerChannel::appendMessagesColor( const QString& s, const QString& c )  void qsamplerChannel::appendMessagesColor( const QString& s, const QString& c )
516  {  {
517      if (m_pMainForm) m_pMainForm->appendMessagesColor(s, c);      if (m_pMainForm)
518                    m_pMainForm->appendMessagesColor(channelName() + ' ' + s, c);
519  }  }
520    
521  void qsamplerChannel::appendMessagesText( const QString& s )  void qsamplerChannel::appendMessagesText( const QString& s )
522  {  {
523      if (m_pMainForm) m_pMainForm->appendMessagesText(s);      if (m_pMainForm)
524                    m_pMainForm->appendMessagesText(channelName() + ' ' + s);
525  }  }
526    
527  void qsamplerChannel::appendMessagesError( const QString& s )  void qsamplerChannel::appendMessagesError( const QString& s )
528  {  {
529      if (m_pMainForm) m_pMainForm->appendMessagesError(s);      if (m_pMainForm)
530                    m_pMainForm->appendMessagesError(channelName() + "\n\n" + s);
531  }  }
532    
533  void qsamplerChannel::appendMessagesClient( const QString& s )  void qsamplerChannel::appendMessagesClient( const QString& s )
534  {  {
535      if (m_pMainForm) m_pMainForm->appendMessagesClient(s);      if (m_pMainForm)
536                    m_pMainForm->appendMessagesClient(channelName() + ' ' + s);
537  }  }
538    
539    
540  // Context menu event handler.  // Context menu event handler.
541  void qsamplerChannel::contextMenuEvent( QContextMenuEvent *pEvent )  void qsamplerChannel::contextMenuEvent( QContextMenuEvent *pEvent )
542  {  {
543      if (m_pMainForm) m_pMainForm->contextMenuEvent(pEvent);      if (m_pMainForm)
544                    m_pMainForm->contextMenuEvent(pEvent);
545    }
546    
547    
548    // FIXME: Check whether a given file is an instrument file.
549    bool qsamplerChannel::isInstrumentFile ( const QString& sInstrumentFile )
550    {
551            bool bResult = false;
552    
553            QFile file(sInstrumentFile);
554            if (file.open(IO_ReadOnly)) {
555                    char achHeader[4];
556                    if (file.readBlock(achHeader, 4)) {
557                            bResult = (achHeader[0] == 'R'
558                                            && achHeader[1] == 'I'
559                                            && achHeader[2] == 'F'
560                                            && achHeader[3] == 'F');
561                    }
562                    file.close();
563            }
564    
565            return bResult;
566  }  }
567    
568    
569  // Retrieve the instrument list of a instrument file (.gig).  // Retrieve the instrument list of a instrument file (.gig).
570  QStringList qsamplerChannel::getInstrumentList( const QString& sInstrumentFile )  QStringList qsamplerChannel::getInstrumentList( const QString& sInstrumentFile,
571            bool bInstrumentNames )
572  {  {
573      QFileInfo fileinfo(sInstrumentFile);      QString sInstrumentName = QFileInfo(sInstrumentFile).fileName();
     QString sInstrumentName = fileinfo.fileName();  
574      QStringList instlist;      QStringList instlist;
575    
576      if (fileinfo.exists()) {      if (isInstrumentFile(sInstrumentFile)) {
577  #ifdef CONFIG_LIBGIG  #ifdef CONFIG_LIBGIG
578                  if (g_bInstrumentNames) {                  if (bInstrumentNames) {
579                  RIFF::File *pRiff = new RIFF::File(sInstrumentFile);                  RIFF::File *pRiff = new RIFF::File(sInstrumentFile);
580                  gig::File  *pGig  = new gig::File(pRiff);                  gig::File  *pGig  = new gig::File(pRiff);
581                  gig::Instrument *pInstrument = pGig->GetFirstInstrument();                  gig::Instrument *pInstrument = pGig->GetFirstInstrument();
# Line 479  QStringList qsamplerChannel::getInstrume Line 591  QStringList qsamplerChannel::getInstrume
591          for (int iInstrumentNr = 0; iInstrumentNr < QSAMPLER_INSTRUMENT_MAX; iInstrumentNr++)          for (int iInstrumentNr = 0; iInstrumentNr < QSAMPLER_INSTRUMENT_MAX; iInstrumentNr++)
592              instlist.append(sInstrumentName + " [" + QString::number(iInstrumentNr) + "]");              instlist.append(sInstrumentName + " [" + QString::number(iInstrumentNr) + "]");
593      }      }
594      else instlist.append(sInstrumentName);      else instlist.append(noInstrumentName());
595    
596      return instlist;      return instlist;
597  }  }
598    
599    
600  // Retrieve the spacific instrument name of a instrument file (.gig), given its index.  // Retrieve the spacific instrument name of a instrument file (.gig), given its index.
601  QString qsamplerChannel::getInstrumentName( const QString& sInstrumentFile, int iInstrumentNr )  QString qsamplerChannel::getInstrumentName( const QString& sInstrumentFile,
602            int iInstrumentNr, bool bInstrumentNames )
603  {  {
604      QFileInfo fileinfo(sInstrumentFile);      QString sInstrumentName;
     QString sInstrumentName = fileinfo.fileName();  
605    
606      if (fileinfo.exists()) {      if (isInstrumentFile(sInstrumentFile)) {
607                    sInstrumentName = QFileInfo(sInstrumentFile).fileName();
608  #ifdef CONFIG_LIBGIG  #ifdef CONFIG_LIBGIG
609                  if (g_bInstrumentNames) {                  if (bInstrumentNames) {
610                  RIFF::File *pRiff = new RIFF::File(sInstrumentFile);                  RIFF::File *pRiff = new RIFF::File(sInstrumentFile);
611                  gig::File  *pGig  = new gig::File(pRiff);                  gig::File  *pGig  = new gig::File(pRiff);
612                  int iIndex = 0;                  int iIndex = 0;
# Line 513  QString qsamplerChannel::getInstrumentNa Line 626  QString qsamplerChannel::getInstrumentNa
626  #endif  #endif
627          sInstrumentName += " [" + QString::number(iInstrumentNr) + "]";          sInstrumentName += " [" + QString::number(iInstrumentNr) + "]";
628      }      }
629        else sInstrumentName = noInstrumentName();
630    
631      return sInstrumentName;      return sInstrumentName;
632  }  }
633    
634    
635  // Instrument name(s) retrieval mode--global option.  // Common invalid name-helpers.
636  bool qsamplerChannel::instrumentNames (void)  QString qsamplerChannel::noEngineName (void)
637  {  {
638          return g_bInstrumentNames;          return QObject::tr("(No engine)");
639  }  }
640    
641  void qsamplerChannel::setInstrumentNames ( bool bInstrumentNames )  QString qsamplerChannel::noInstrumentName (void)
642  {  {
643          g_bInstrumentNames = bInstrumentNames;          return QObject::tr("(No instrument)");
644  }  }
645    
646    

Legend:
Removed from v.343  
changed lines
  Added in v.404

  ViewVC Help
Powered by ViewVC