/[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 303 by capela, Fri Nov 19 10:18:59 2004 UTC revision 306 by capela, Fri Nov 19 16:54:53 2004 UTC
# Line 466  QStringList qsamplerChannel::getInstrume Line 466  QStringList qsamplerChannel::getInstrume
466          gig::File  *pGig  = new gig::File(pRiff);          gig::File  *pGig  = new gig::File(pRiff);
467          gig::Instrument *pInstrument = pGig->GetFirstInstrument();          gig::Instrument *pInstrument = pGig->GetFirstInstrument();
468          while (pInstrument) {          while (pInstrument) {
469              sInstrumentName = (pInstrument->pInfo)->Name;              instlist.append((pInstrument->pInfo)->Name.c_str());
             instlist.append(sInstrumentName);  
470              pInstrument = pGig->GetNextInstrument();              pInstrument = pGig->GetNextInstrument();
471          }          }
472          delete pGig;          delete pGig;
# Line 478  QStringList qsamplerChannel::getInstrume Line 477  QStringList qsamplerChannel::getInstrume
477  #endif  #endif
478      }      }
479      else instlist.append(sInstrumentName);      else instlist.append(sInstrumentName);
480        
481      return instlist;      return instlist;
482  }  }
483    
# Line 497  QString qsamplerChannel::getInstrumentNa Line 496  QString qsamplerChannel::getInstrumentNa
496          gig::Instrument *pInstrument = pGig->GetFirstInstrument();          gig::Instrument *pInstrument = pGig->GetFirstInstrument();
497          while (pInstrument) {          while (pInstrument) {
498              if (iIndex == iInstrumentNr) {              if (iIndex == iInstrumentNr) {
499                  sInstrumentName = (pInstrument->pInfo)->Name;                  sInstrumentName = (pInstrument->pInfo)->Name.c_str();
500                  break;                  break;
501              }              }
502              iIndex++;              iIndex++;

Legend:
Removed from v.303  
changed lines
  Added in v.306

  ViewVC Help
Powered by ViewVC