6414 |
|
|
6415 |
SampleList::iterator tmp = SamplesIterator; |
SampleList::iterator tmp = SamplesIterator; |
6416 |
// remove all references to the sample |
// remove all references to the sample |
6417 |
for (Instrument* instrument = GetFirstInstrument() ; instrument ; |
size_t iIns = 0; |
6418 |
instrument = GetNextInstrument()) { |
for (Instrument* instrument = GetInstrument(iIns); instrument; |
6419 |
|
instrument = GetInstrument(++iIns)) |
6420 |
|
{ |
6421 |
size_t iRgn = 0; |
size_t iRgn = 0; |
6422 |
for (Region* region = instrument->GetRegionAt(iRgn); region; |
for (Region* region = instrument->GetRegionAt(iRgn); region; |
6423 |
region = instrument->GetRegionAt(++iRgn)) |
region = instrument->GetRegionAt(++iRgn)) |
7327 |
|
|
7328 |
memset(&pData[48], 0, sublen - 48); |
memset(&pData[48], 0, sublen - 48); |
7329 |
|
|
7330 |
for (Instrument* instrument = GetFirstInstrument() ; instrument ; |
size_t iIns = 0; |
7331 |
instrument = GetNextInstrument()) { |
for (Instrument* instrument = GetInstrument(iIns); instrument; |
7332 |
|
instrument = GetInstrument(++iIns)) |
7333 |
|
{ |
7334 |
int nbusedsamples = 0; |
int nbusedsamples = 0; |
7335 |
int nbusedchannels = 0; |
int nbusedchannels = 0; |
7336 |
int nbdimregions = 0; |
int nbdimregions = 0; |
7435 |
void File::UpdateFileOffsets() { |
void File::UpdateFileOffsets() { |
7436 |
DLS::File::UpdateFileOffsets(); |
DLS::File::UpdateFileOffsets(); |
7437 |
|
|
7438 |
for (Instrument* instrument = GetFirstInstrument(); instrument; |
size_t i = 0; |
7439 |
instrument = GetNextInstrument()) |
for (Instrument* instrument = GetInstrument(i); instrument; |
7440 |
|
instrument = GetInstrument(++i)) |
7441 |
{ |
{ |
7442 |
instrument->UpdateScriptFileOffsets(); |
instrument->UpdateScriptFileOffsets(); |
7443 |
} |
} |