mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-24 05:25:12 +00:00
fix conflicting system flags when changing systems
This commit is contained in:
parent
0a307fc4a6
commit
fa32cadd36
1 changed files with 5 additions and 1 deletions
|
@ -612,6 +612,7 @@ void DivEngine::changeSystem(int index, DivSystem which) {
|
||||||
quitDispatch();
|
quitDispatch();
|
||||||
isBusy.lock();
|
isBusy.lock();
|
||||||
song.system[index]=which;
|
song.system[index]=which;
|
||||||
|
song.systemFlags[index]=0;
|
||||||
recalcChans();
|
recalcChans();
|
||||||
isBusy.unlock();
|
isBusy.unlock();
|
||||||
initDispatch();
|
initDispatch();
|
||||||
|
@ -633,7 +634,10 @@ bool DivEngine::addSystem(DivSystem which) {
|
||||||
}
|
}
|
||||||
quitDispatch();
|
quitDispatch();
|
||||||
isBusy.lock();
|
isBusy.lock();
|
||||||
song.system[song.systemLen++]=which;
|
song.system[song.systemLen]=which;
|
||||||
|
song.systemVol[song.systemLen]=64;
|
||||||
|
song.systemPan[song.systemLen]=0;
|
||||||
|
song.systemFlags[song.systemLen++]=0;
|
||||||
recalcChans();
|
recalcChans();
|
||||||
isBusy.unlock();
|
isBusy.unlock();
|
||||||
initDispatch();
|
initDispatch();
|
||||||
|
|
Loading…
Reference in a new issue