1262 |
uint DimensionRegion::Instances = 0; |
uint DimensionRegion::Instances = 0; |
1263 |
DimensionRegion::VelocityTableMap* DimensionRegion::pVelocityTables = NULL; |
DimensionRegion::VelocityTableMap* DimensionRegion::pVelocityTables = NULL; |
1264 |
|
|
1265 |
DimensionRegion::DimensionRegion(RIFF::List* _3ewl) : DLS::Sampler(_3ewl) { |
DimensionRegion::DimensionRegion(Region* pParent, RIFF::List* _3ewl) : DLS::Sampler(_3ewl) { |
1266 |
Instances++; |
Instances++; |
1267 |
|
|
1268 |
pSample = NULL; |
pSample = NULL; |
1269 |
|
pRegion = pParent; |
1270 |
|
|
1271 |
if (_3ewl->GetSubChunk(CHUNK_ID_WSMP)) memcpy(&Crossfade, &SamplerOptions, 4); |
if (_3ewl->GetSubChunk(CHUNK_ID_WSMP)) memcpy(&Crossfade, &SamplerOptions, 4); |
1272 |
else memset(&Crossfade, 0, 4); |
else memset(&Crossfade, 0, 4); |
1875 |
return table; |
return table; |
1876 |
} |
} |
1877 |
|
|
1878 |
|
Region* DimensionRegion::GetParent() const { |
1879 |
|
return pRegion; |
1880 |
|
} |
1881 |
|
|
1882 |
leverage_ctrl_t DimensionRegion::DecodeLeverageController(_lev_ctrl_t EncodedController) { |
leverage_ctrl_t DimensionRegion::DecodeLeverageController(_lev_ctrl_t EncodedController) { |
1883 |
leverage_ctrl_t decodedcontroller; |
leverage_ctrl_t decodedcontroller; |
1884 |
switch (EncodedController) { |
switch (EncodedController) { |
2278 |
RIFF::List* _3prg = rgnList->GetSubList(LIST_TYPE_3PRG); |
RIFF::List* _3prg = rgnList->GetSubList(LIST_TYPE_3PRG); |
2279 |
if (!_3prg) _3prg = rgnList->AddSubList(LIST_TYPE_3PRG); |
if (!_3prg) _3prg = rgnList->AddSubList(LIST_TYPE_3PRG); |
2280 |
RIFF::List* _3ewl = _3prg->AddSubList(LIST_TYPE_3EWL); |
RIFF::List* _3ewl = _3prg->AddSubList(LIST_TYPE_3EWL); |
2281 |
pDimensionRegions[0] = new DimensionRegion(_3ewl); |
pDimensionRegions[0] = new DimensionRegion(this, _3ewl); |
2282 |
DimensionRegions = 1; |
DimensionRegions = 1; |
2283 |
} |
} |
2284 |
} |
} |
2373 |
RIFF::List* _3ewl = _3prg->GetFirstSubList(); |
RIFF::List* _3ewl = _3prg->GetFirstSubList(); |
2374 |
while (_3ewl) { |
while (_3ewl) { |
2375 |
if (_3ewl->GetListType() == LIST_TYPE_3EWL) { |
if (_3ewl->GetListType() == LIST_TYPE_3EWL) { |
2376 |
pDimensionRegions[dimensionRegionNr] = new DimensionRegion(_3ewl); |
pDimensionRegions[dimensionRegionNr] = new DimensionRegion(this, _3ewl); |
2377 |
dimensionRegionNr++; |
dimensionRegionNr++; |
2378 |
} |
} |
2379 |
_3ewl = _3prg->GetNextSubList(); |
_3ewl = _3prg->GetNextSubList(); |