967 |
// dimension regions and samples may still be in use - these |
// dimension regions and samples may still be in use - these |
968 |
// will be deleted later by the HandBackDimReg function. |
// will be deleted later by the HandBackDimReg function. |
969 |
bool deleteFile = true; |
bool deleteFile = true; |
970 |
::gig::Instrument* nextInstrument; |
ssize_t iInstr = pResource->CountInstruments(); |
971 |
for (::gig::Instrument* instrument = pResource->GetFirstInstrument() ; |
for (--iInstr; iInstr >= 0; --iInstr) { |
972 |
instrument ; |
::gig::Instrument* instrument = pResource->GetInstrument(iInstr); |
|
instrument = nextInstrument) { |
|
|
nextInstrument = pResource->GetNextInstrument(); |
|
973 |
bool deleteInstrument = true; |
bool deleteInstrument = true; |
974 |
ssize_t iRgn = instrument->CountRegions(); |
ssize_t iRgn = instrument->CountRegions(); |
975 |
for (--iRgn; iRgn >= 0; --iRgn) { |
for (--iRgn; iRgn >= 0; --iRgn) { |