memory composition, part 1
This commit is contained in:
parent
06c0d9d510
commit
7a41461883
5 changed files with 76 additions and 1 deletions
|
|
@ -971,6 +971,7 @@ void DivPlatformSNES::renderSamples(int sysID) {
|
|||
if (s->loop) {
|
||||
copyOfSampleMem[memPos+actualLength-9]|=3;
|
||||
}
|
||||
memCompo.entries.push_back(DivMemoryEntry(DIV_MEMORY_SAMPLE,"Sample",i,memPos,memPos+actualLength));
|
||||
memPos+=actualLength;
|
||||
}
|
||||
if (actualLength<length) {
|
||||
|
|
@ -982,6 +983,8 @@ void DivPlatformSNES::renderSamples(int sysID) {
|
|||
sampleLoaded[i]=true;
|
||||
}
|
||||
sampleMemLen=memPos;
|
||||
memCompo.capacity=65536;
|
||||
memCompo.used=sampleMemLen;
|
||||
memcpy(sampleMem,copyOfSampleMem,65536);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue