Add getPaired function for PCE LFO

This commit is contained in:
cam900 2024-02-03 15:18:33 +09:00 committed by tildearrow
parent 6b52709a57
commit fca5ee26c3
2 changed files with 8 additions and 0 deletions

View file

@ -524,6 +524,13 @@ unsigned short DivPlatformPCE::getPan(int ch) {
return ((chan[ch].pan&0xf0)<<4)|(chan[ch].pan&15); return ((chan[ch].pan&0xf0)<<4)|(chan[ch].pan&15);
} }
DivChannelPair DivPlatformPCE::getPaired(int ch) {
if (ch==1 && lfoMode>0) {
return DivChannelPair("mod",0);
}
return DivChannelPair();
}
DivChannelModeHints DivPlatformPCE::getModeHints(int ch) { DivChannelModeHints DivPlatformPCE::getModeHints(int ch) {
DivChannelModeHints ret; DivChannelModeHints ret;
if (ch<4) return ret; if (ch<4) return ret;

View file

@ -83,6 +83,7 @@ class DivPlatformPCE: public DivDispatch {
void* getChanState(int chan); void* getChanState(int chan);
DivMacroInt* getChanMacroInt(int ch); DivMacroInt* getChanMacroInt(int ch);
unsigned short getPan(int chan); unsigned short getPan(int chan);
DivChannelPair getPaired(int chan);
DivChannelModeHints getModeHints(int chan); DivChannelModeHints getModeHints(int chan);
DivSamplePos getSamplePos(int ch); DivSamplePos getSamplePos(int ch);
DivDispatchOscBuffer* getOscBuffer(int chan); DivDispatchOscBuffer* getOscBuffer(int chan);