835 |
RIFF::File *pRiff |
RIFF::File *pRiff |
836 |
= new RIFF::File(sInstrumentFile.toUtf8().constData()); |
= new RIFF::File(sInstrumentFile.toUtf8().constData()); |
837 |
gig::File *pGig = new gig::File(pRiff); |
gig::File *pGig = new gig::File(pRiff); |
838 |
|
#if HAVE_LIBGIG_SETAUTOLOAD |
839 |
|
// prevent sleepy response time on large .gig files |
840 |
|
pGig->SetAutoLoad(false); |
841 |
|
#endif |
842 |
gig::Instrument *pInstrument = pGig->GetFirstInstrument(); |
gig::Instrument *pInstrument = pGig->GetFirstInstrument(); |
843 |
while (pInstrument) { |
while (pInstrument) { |
844 |
instlist.append((pInstrument->pInfo)->Name.c_str()); |
instlist.append((pInstrument->pInfo)->Name.c_str()); |
871 |
RIFF::File *pRiff |
RIFF::File *pRiff |
872 |
= new RIFF::File(sInstrumentFile.toUtf8().constData()); |
= new RIFF::File(sInstrumentFile.toUtf8().constData()); |
873 |
gig::File *pGig = new gig::File(pRiff); |
gig::File *pGig = new gig::File(pRiff); |
874 |
|
#if HAVE_LIBGIG_SETAUTOLOAD |
875 |
|
// prevent sleepy response time on large .gig files |
876 |
|
pGig->SetAutoLoad(false); |
877 |
|
#endif |
878 |
int iIndex = 0; |
int iIndex = 0; |
879 |
gig::Instrument *pInstrument = pGig->GetFirstInstrument(); |
gig::Instrument *pInstrument = pGig->GetFirstInstrument(); |
880 |
while (pInstrument) { |
while (pInstrument) { |