--- qsampler/trunk/src/qsamplerChannel.cpp 2004/11/19 10:18:59 303 +++ qsampler/trunk/src/qsamplerChannel.cpp 2004/11/19 16:54:53 306 @@ -466,8 +466,7 @@ gig::File *pGig = new gig::File(pRiff); gig::Instrument *pInstrument = pGig->GetFirstInstrument(); while (pInstrument) { - sInstrumentName = (pInstrument->pInfo)->Name; - instlist.append(sInstrumentName); + instlist.append((pInstrument->pInfo)->Name.c_str()); pInstrument = pGig->GetNextInstrument(); } delete pGig; @@ -478,7 +477,7 @@ #endif } else instlist.append(sInstrumentName); - + return instlist; } @@ -497,7 +496,7 @@ gig::Instrument *pInstrument = pGig->GetFirstInstrument(); while (pInstrument) { if (iIndex == iInstrumentNr) { - sInstrumentName = (pInstrument->pInfo)->Name; + sInstrumentName = (pInstrument->pInfo)->Name.c_str(); break; } iIndex++;