Skip to content

Commit

Permalink
GUI: channel pair hints, part 2
Browse files Browse the repository at this point in the history
POKEY
  • Loading branch information
tildearrow committed Oct 8, 2023
1 parent 4b008f4 commit 7fc7347
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
18 changes: 18 additions & 0 deletions src/engine/platform/pokey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,24 @@ DivMacroInt* DivPlatformPOKEY::getChanMacroInt(int ch) {
return &chan[ch].std;
}

DivChannelPair DivPlatformPOKEY::getPaired(int ch) {
switch (ch) {
case 0:
if (audctl&4) return DivChannelPair("filter",2);
break;
case 1:
if (audctl&16) return DivChannelPair("16-bit",0);
break;
case 2:
if (audctl&8) return DivChannelPair("16-bit",3);
break;
case 3:
if (audctl&2) return DivChannelPair("filter",1);
break;
}
return DivChannelPair();
}

DivDispatchOscBuffer* DivPlatformPOKEY::getOscBuffer(int ch) {
return oscBuf[ch];
}
Expand Down
1 change: 1 addition & 0 deletions src/engine/platform/pokey.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class DivPlatformPOKEY: public DivDispatch {
int dispatch(DivCommand c);
void* getChanState(int chan);
DivMacroInt* getChanMacroInt(int ch);
DivChannelPair getPaired(int chan);
DivDispatchOscBuffer* getOscBuffer(int chan);
unsigned char* getRegisterPool();
int getRegisterPoolSize();
Expand Down
2 changes: 1 addition & 1 deletion src/gui/pattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ void FurnaceGUI::drawPattern() {
}
}
}
chanHeadBottom=ImGui::GetCursorScreenPos().y;
chanHeadBottom=ImGui::GetCursorScreenPos().y-ImGui::GetStyle().ItemSpacing.y;
}
ImGui::TableNextColumn();
lastPatternWidth=ImGui::GetCursorPosX()-lpwStart+ImGui::GetStyle().ScrollbarSize;
Expand Down

0 comments on commit 7fc7347

Please sign in to comment.