mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 06:53:01 +00:00
parent
5ee41c5f5e
commit
2ccc525293
1 changed files with 3 additions and 3 deletions
|
@ -529,10 +529,10 @@ void DivPlatformK007232::renderSamples(int sysID) {
|
|||
}
|
||||
|
||||
const int length=s->getLoopEndPosition(DIV_SAMPLE_DEPTH_8BIT);
|
||||
int actualLength=MIN((int)(getSampleMemCapacity()-memPos)-1,length);
|
||||
int actualLength=MIN((int)(getSampleMemCapacity()-memPos)-2,length);
|
||||
if (actualLength>0) {
|
||||
if (actualLength>131072-1) {
|
||||
actualLength=131072-1;
|
||||
if (actualLength>131072-2) {
|
||||
actualLength=131072-2;
|
||||
}
|
||||
if ((memPos&0xfe0000)!=((memPos+actualLength+1)&0xfe0000)) {
|
||||
memPos=(memPos+0x1ffff)&0xfe0000;
|
||||
|
|
Loading…
Reference in a new issue