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; |
477 |
#endif |
#endif |
478 |
} |
} |
479 |
else instlist.append(sInstrumentName); |
else instlist.append(sInstrumentName); |
480 |
|
|
481 |
return instlist; |
return instlist; |
482 |
} |
} |
483 |
|
|
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++; |