SoundUnit: fix sample map
This commit is contained in:
parent
f4bb5f2893
commit
c0acd472ed
|
@ -233,8 +233,7 @@ void DivPlatformSoundUnit::tick(bool sysTick) {
|
||||||
}
|
}
|
||||||
if (chan[i].keyOn) {
|
if (chan[i].keyOn) {
|
||||||
if (chan[i].pcm) {
|
if (chan[i].pcm) {
|
||||||
DivInstrument* ins=parent->getIns(chan[i].ins,DIV_INS_SU);
|
int sNum=chan[i].sample;
|
||||||
int sNum=ins->amiga.getSample(chan[i].note);
|
|
||||||
DivSample* sample=parent->getSample(sNum);
|
DivSample* sample=parent->getSample(sNum);
|
||||||
if (sample!=NULL && sNum>=0 && sNum<parent->song.sampleLen) {
|
if (sample!=NULL && sNum>=0 && sNum<parent->song.sampleLen) {
|
||||||
unsigned int sampleEnd=sampleOffSU[sNum]+(sample->getLoopEndPosition());
|
unsigned int sampleEnd=sampleOffSU[sNum]+(sample->getLoopEndPosition());
|
||||||
|
|
Loading…
Reference in a new issue