111 |
|
|
112 |
// cache initial samples points (for actually needed samples) |
// cache initial samples points (for actually needed samples) |
113 |
dmsg(1,("Caching initial samples...")); |
dmsg(1,("Caching initial samples...")); |
114 |
int regionCount = pInstrument->regions.size(); |
int regionCount = (int) pInstrument->regions.size(); |
115 |
uint maxSamplesPerCycle = GetMaxSamplesPerCycle(pConsumer); |
uint maxSamplesPerCycle = GetMaxSamplesPerCycle(pConsumer); |
116 |
for (int i = 0 ; i < regionCount ; i++) { |
for (int i = 0 ; i < regionCount ; i++) { |
117 |
float localProgress = (float) i / (float) regionCount; |
float localProgress = (float) i / (float) regionCount; |
178 |
bool deleteInstrument = true; |
bool deleteInstrument = true; |
179 |
::sfz::Instrument* pInstr = pResource->GetInstrument(); |
::sfz::Instrument* pInstr = pResource->GetInstrument(); |
180 |
|
|
181 |
for (int i = pInstr->regions.size() - 1; i >= 0 ; i--) { |
for (int i = (int)pInstr->regions.size() - 1; i >= 0 ; i--) { |
182 |
::sfz::Region* pRegion = pInstr->regions[i]; |
::sfz::Region* pRegion = pInstr->regions[i]; |
183 |
std::map< ::sfz::Region*, region_info_t>::iterator iter = parent->RegionInfo.find(pRegion); |
std::map< ::sfz::Region*, region_info_t>::iterator iter = parent->RegionInfo.find(pRegion); |
184 |
if (iter != parent->RegionInfo.end()) { |
if (iter != parent->RegionInfo.end()) { |