naive channel pair refactor (dumb replace one pair with vector of pairs)
This commit is contained in:
parent
0ea53fdae5
commit
7c324ec39d
19 changed files with 140 additions and 138 deletions
|
|
@ -407,22 +407,21 @@ DivMacroInt* DivPlatformPOKEY::getChanMacroInt(int ch) {
|
|||
return &chan[ch].std;
|
||||
}
|
||||
|
||||
DivChannelPair DivPlatformPOKEY::getPaired(int ch) {
|
||||
void DivPlatformPOKEY::getPaired(int ch, std::vector<DivChannelPair>& ret) {
|
||||
switch (ch) {
|
||||
case 0:
|
||||
if (audctl&4) return DivChannelPair("filter",2);
|
||||
if (audctl&4) ret.push_back(DivChannelPair("filter",2));
|
||||
break;
|
||||
case 1:
|
||||
if (audctl&16) return DivChannelPair("16-bit",0);
|
||||
if (audctl&16) ret.push_back(DivChannelPair("16-bit",0));
|
||||
break;
|
||||
case 2:
|
||||
if (audctl&8) return DivChannelPair("16-bit",3);
|
||||
if (audctl&8) ret.push_back(DivChannelPair("16-bit",3));
|
||||
break;
|
||||
case 3:
|
||||
if (audctl&2) return DivChannelPair("filter",1);
|
||||
if (audctl&2) ret.push_back(DivChannelPair("filter",1));
|
||||
break;
|
||||
}
|
||||
return DivChannelPair();
|
||||
}
|
||||
|
||||
DivDispatchOscBuffer* DivPlatformPOKEY::getOscBuffer(int ch) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue