bring crash fix from 0.5.8
This commit is contained in:
parent
dee74e7b14
commit
19c4f5559a
11 changed files with 33 additions and 25 deletions
|
|
@ -623,6 +623,11 @@ DivWavetable* DivEngine::getWave(int index) {
|
|||
return song.wave[index];
|
||||
}
|
||||
|
||||
DivSample* DivEngine::getSample(int index) {
|
||||
if (index<0 || index>=song.sampleLen) return &song.nullSample;
|
||||
return song.sample[index];
|
||||
}
|
||||
|
||||
void DivEngine::setLoops(int loops) {
|
||||
remainingLoops=loops;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue