mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-24 05:25:12 +00:00
WonderSwan: fix possible hang when seeking
This commit is contained in:
parent
7f01eaec9d
commit
2abcea118c
1 changed files with 2 additions and 1 deletions
|
@ -59,7 +59,8 @@ void DivPlatformSwan::acquire(short* bufL, short* bufR, size_t start, size_t len
|
|||
DivSample* s=parent->getSample(dacSample);
|
||||
if (s->samples<=0) {
|
||||
dacSample=-1;
|
||||
continue;
|
||||
dacPeriod=0;
|
||||
break;
|
||||
}
|
||||
rWrite(0x09,(unsigned char)s->data8[dacPos++]+0x80);
|
||||
if (s->isLoopable() && dacPos>=s->getEndPosition()) {
|
||||
|
|
Loading…
Reference in a new issue