GUI: add a debug window

This commit is contained in:
tildearrow 2022-01-27 00:29:16 -05:00
parent 30b012cc5e
commit 0e633ea69b
44 changed files with 490 additions and 4 deletions

View file

@ -3716,6 +3716,16 @@ void DivEngine::setLoops(int loops) {
remainingLoops=loops;
}
DivChannelState* DivEngine::getChanState(int ch) {
if (ch<0 || ch>=chans) return NULL;
return &chan[ch];
}
void* DivEngine::getDispatchChanState(int ch) {
if (ch<0 || ch>=chans) return NULL;
return disCont[dispatchOfChan[ch]].dispatch->getChanState(dispatchChanOfChan[ch]);
}
void DivEngine::playSub(bool preserveDrift) {
reset();
if (preserveDrift && curOrder==0) return;