mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-16 09:45:06 +00:00
Fix sample position command
This commit is contained in:
parent
72594d978b
commit
1dd217de21
1 changed files with 2 additions and 1 deletions
|
@ -643,8 +643,9 @@ void DivPlatformES5506::tick(bool sysTick) {
|
|||
if (chan[i].pcm.index>=0 && chan[i].pcm.index<parent->song.sampleLen) {
|
||||
unsigned int startPos=chan[i].pcm.reversed?chan[i].pcm.end:chan[i].pcm.start;
|
||||
if (chan[i].pcm.nextPos) {
|
||||
const unsigned int start=chan[i].pcm.start;
|
||||
const unsigned int end=chan[i].pcm.length;
|
||||
startPos+=(chan[i].pcm.reversed?(end-chan[i].pcm.nextPos):chan[i].pcm.nextPos)<<11;
|
||||
startPos=start+((chan[i].pcm.reversed?(end-chan[i].pcm.nextPos):(chan[i].pcm.nextPos))<<11);
|
||||
chan[i].pcm.nextPos=0;
|
||||
}
|
||||
chan[i].k1Prev=0xffff;
|
||||
|
|
Loading…
Reference in a new issue