memory composition, part 5
almost there
This commit is contained in:
parent
6763aa44a9
commit
0be5835645
13 changed files with 108 additions and 1 deletions
|
|
@ -452,6 +452,9 @@ void DivPlatformYMZ280B::renderSamples(int sysID) {
|
|||
memset(sampleOff,0,256*sizeof(unsigned int));
|
||||
memset(sampleLoaded,0,256*sizeof(bool));
|
||||
|
||||
memCompo=DivMemoryComposition();
|
||||
memCompo.name="Sample ROM";
|
||||
|
||||
size_t memPos=0;
|
||||
for (int i=0; i<parent->song.sampleLen; i++) {
|
||||
DivSample* s=parent->song.sample[i];
|
||||
|
|
@ -476,6 +479,7 @@ void DivPlatformYMZ280B::renderSamples(int sysID) {
|
|||
}
|
||||
#endif
|
||||
sampleOff[i]=memPos;
|
||||
memCompo.entries.push_back(DivMemoryEntry(DIV_MEMORY_SAMPLE,"Sample",i,memPos,memPos+length));
|
||||
memPos+=length;
|
||||
}
|
||||
if (actualLength<length) {
|
||||
|
|
@ -485,6 +489,9 @@ void DivPlatformYMZ280B::renderSamples(int sysID) {
|
|||
sampleLoaded[i]=true;
|
||||
}
|
||||
sampleMemLen=memPos;
|
||||
|
||||
memCompo.used=sampleMemLen;
|
||||
memCompo.capacity=getSampleMemCapacity(0);
|
||||
}
|
||||
|
||||
void DivPlatformYMZ280B::setChipModel(int type) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue