GUI: channel pair hints, part 2
POKEY
This commit is contained in:
parent
4b008f4b41
commit
7fc734744d
|
@ -406,6 +406,24 @@ DivMacroInt* DivPlatformPOKEY::getChanMacroInt(int ch) {
|
||||||
return &chan[ch].std;
|
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) {
|
DivDispatchOscBuffer* DivPlatformPOKEY::getOscBuffer(int ch) {
|
||||||
return oscBuf[ch];
|
return oscBuf[ch];
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,6 +65,7 @@ class DivPlatformPOKEY: public DivDispatch {
|
||||||
int dispatch(DivCommand c);
|
int dispatch(DivCommand c);
|
||||||
void* getChanState(int chan);
|
void* getChanState(int chan);
|
||||||
DivMacroInt* getChanMacroInt(int ch);
|
DivMacroInt* getChanMacroInt(int ch);
|
||||||
|
DivChannelPair getPaired(int chan);
|
||||||
DivDispatchOscBuffer* getOscBuffer(int chan);
|
DivDispatchOscBuffer* getOscBuffer(int chan);
|
||||||
unsigned char* getRegisterPool();
|
unsigned char* getRegisterPool();
|
||||||
int getRegisterPoolSize();
|
int getRegisterPoolSize();
|
||||||
|
|
|
@ -999,7 +999,7 @@ void FurnaceGUI::drawPattern() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
chanHeadBottom=ImGui::GetCursorScreenPos().y;
|
chanHeadBottom=ImGui::GetCursorScreenPos().y-ImGui::GetStyle().ItemSpacing.y;
|
||||||
}
|
}
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
lastPatternWidth=ImGui::GetCursorPosX()-lpwStart+ImGui::GetStyle().ScrollbarSize;
|
lastPatternWidth=ImGui::GetCursorPosX()-lpwStart+ImGui::GetStyle().ScrollbarSize;
|
||||||
|
|
Loading…
Reference in a new issue