217 |
regInfo.file = pResource; |
regInfo.file = pResource; |
218 |
deleteInstrument = false; |
deleteInstrument = false; |
219 |
} else { |
} else { |
220 |
SampleFile* sf = pRegion->GetSample(false); |
::sfz::Sample* sf = pRegion->GetSample(false); |
221 |
if (sf != NULL) pInstr->GetSampleManager()->RemoveSampleConsumer(sf, pRegion); |
if (sf != NULL) pInstr->GetSampleManager()->RemoveSampleConsumer(sf, pRegion); |
222 |
if (sf == NULL || !pInstr->GetSampleManager()->HasSampleConsumers(sf)) pInstr->DestroyRegion(pRegion); |
if (sf == NULL || !pInstr->GetSampleManager()->HasSampleConsumers(sf)) pInstr->DestroyRegion(pRegion); |
223 |
} |
} |