mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-02 02:52:40 +00:00
command stream ending fix?
This commit is contained in:
parent
1e221393c4
commit
7d95e685ac
1 changed files with 7 additions and 1 deletions
|
@ -293,12 +293,13 @@ SafeWriter* DivEngine::saveCommand(bool binary) {
|
|||
int lastTick[DIV_MAX_CHANS];
|
||||
|
||||
memset(lastTick,0,DIV_MAX_CHANS*sizeof(int));
|
||||
bool wroteTickGlobal=false;
|
||||
while (!done) {
|
||||
if (nextTick(false,true) || !playing) {
|
||||
done=true;
|
||||
}
|
||||
// get command stream
|
||||
bool wroteTickGlobal=false;
|
||||
wroteTickGlobal=false;
|
||||
memset(wroteTick,0,DIV_MAX_CHANS*sizeof(bool));
|
||||
if (curDivider!=divider) {
|
||||
curDivider=divider;
|
||||
|
@ -339,6 +340,11 @@ SafeWriter* DivEngine::saveCommand(bool binary) {
|
|||
cmdStream.clear();
|
||||
tick++;
|
||||
}
|
||||
wroteTickGlobal=false;
|
||||
memset(wroteTick,0,DIV_MAX_CHANS*sizeof(bool));
|
||||
for (int i=0; i<chans; i++) {
|
||||
WRITE_TICK(i);
|
||||
}
|
||||
cmdStreamEnabled=oldCmdStreamEnabled;
|
||||
|
||||
if (binary) {
|
||||
|
|
Loading…
Reference in a new issue