mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-30 08:23:01 +00:00
possibly fix #373
This commit is contained in:
parent
cc5013f3dc
commit
f550bd82dd
1 changed files with 3 additions and 1 deletions
|
@ -108,7 +108,9 @@ void DivPlatformAmiga::acquire(short* bufL, short* bufR, size_t start, size_t le
|
||||||
} else {
|
} else {
|
||||||
DivSample* s=parent->getSample(chan[i].sample);
|
DivSample* s=parent->getSample(chan[i].sample);
|
||||||
if (s->samples>0) {
|
if (s->samples>0) {
|
||||||
|
if (chan[i].audPos<s->samples) {
|
||||||
writeAudDat(s->data8[chan[i].audPos++]);
|
writeAudDat(s->data8[chan[i].audPos++]);
|
||||||
|
}
|
||||||
if (chan[i].audPos>=s->samples || chan[i].audPos>=131071) {
|
if (chan[i].audPos>=s->samples || chan[i].audPos>=131071) {
|
||||||
if (s->loopStart>=0 && s->loopStart<(int)s->samples) {
|
if (s->loopStart>=0 && s->loopStart<(int)s->samples) {
|
||||||
chan[i].audPos=s->loopStart;
|
chan[i].audPos=s->loopStart;
|
||||||
|
|
Loading…
Reference in a new issue