GUI: add visualizer to cmd stream player

This commit is contained in:
tildearrow 2025-09-04 05:01:48 -05:00
parent dcf5f3f0c7
commit 24e7338dc5
4 changed files with 80 additions and 1 deletions

View file

@ -682,6 +682,11 @@ bool DivCSPlayer::init() {
chan[i].readPos=chan[i].startPos;
}
}
// read stack sizes
for (unsigned int i=0; i<fileChans; i++) {
chan[i].callStackSize=stream.readC();
}
// initialize state
for (int i=0; i<e->getTotalChannelCount(); i++) {

View file

@ -41,7 +41,7 @@ struct DivCSChannelState {
unsigned char arp, arpStage, arpTicks;
unsigned int callStack[DIV_MAX_CSSTACK];
unsigned char callStackPos;
unsigned char callStackPos, callStackSize;
unsigned int trace[DIV_MAX_CSTRACE];
unsigned char tracePos;
@ -67,6 +67,7 @@ struct DivCSChannelState {
arpStage(0),
arpTicks(0),
callStackPos(0),
callStackSize(0),
tracePos(0) {
for (int i=0; i<DIV_MAX_CSTRACE; i++) {
trace[i]=0;