add failsafe
This commit is contained in:
parent
127eb1569e
commit
28a7348863
|
|
@ -4830,6 +4830,9 @@ int DivEngine::calcFreq(int base, int pitch, bool period, int octave) {
|
||||||
|
|
||||||
void DivEngine::play() {
|
void DivEngine::play() {
|
||||||
isBusy.lock();
|
isBusy.lock();
|
||||||
|
sPreview.sample=-1;
|
||||||
|
sPreview.wave=-1;
|
||||||
|
sPreview.pos=0;
|
||||||
if (stepPlay==0) {
|
if (stepPlay==0) {
|
||||||
freelance=false;
|
freelance=false;
|
||||||
playSub(false);
|
playSub(false);
|
||||||
|
|
@ -4841,6 +4844,9 @@ void DivEngine::play() {
|
||||||
|
|
||||||
void DivEngine::playToRow(int row) {
|
void DivEngine::playToRow(int row) {
|
||||||
isBusy.lock();
|
isBusy.lock();
|
||||||
|
sPreview.sample=-1;
|
||||||
|
sPreview.wave=-1;
|
||||||
|
sPreview.pos=0;
|
||||||
freelance=false;
|
freelance=false;
|
||||||
playSub(false,row);
|
playSub(false,row);
|
||||||
isBusy.unlock();
|
isBusy.unlock();
|
||||||
|
|
@ -4864,6 +4870,9 @@ void DivEngine::stop() {
|
||||||
extValuePresent=false;
|
extValuePresent=false;
|
||||||
stepPlay=0;
|
stepPlay=0;
|
||||||
remainingLoops=-1;
|
remainingLoops=-1;
|
||||||
|
sPreview.sample=-1;
|
||||||
|
sPreview.wave=-1;
|
||||||
|
sPreview.pos=0;
|
||||||
isBusy.unlock();
|
isBusy.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue