mirror of
https://github.com/tildearrow/furnace.git
synced 2025-01-01 04:21:44 +00:00
Amiga: limit sample length
This commit is contained in:
parent
93f82637ad
commit
c09ce1892b
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ void DivPlatformAmiga::acquire(short* bufL, short* bufR, size_t start, size_t le
|
|||
} else {
|
||||
chan[i].audDat=s->rendData[chan[i].audPos++]>>8;
|
||||
}
|
||||
if (chan[i].audPos>=s->rendLength) {
|
||||
if (chan[i].audPos>=s->rendLength || chan[i].audPos>=131071) {
|
||||
if (s->loopStart>=0 && s->loopStart<=(int)s->rendLength) {
|
||||
chan[i].audPos=s->loopStart;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue