mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 23:13:01 +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();
|
||||
isBusy.lock();
|
||||
song.system[index]=which;
|
||||
song.systemFlags[index]=0;
|
||||
recalcChans();
|
||||
isBusy.unlock();
|
||||
initDispatch();
|
||||
|
@ -633,7 +634,10 @@ bool DivEngine::addSystem(DivSystem which) {
|
|||
}
|
||||
quitDispatch();
|
||||
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();
|
||||
isBusy.unlock();
|
||||
initDispatch();
|
||||
|
|
Loading…
Reference in a new issue