parent
e1d6fca576
commit
e76c46e711
|
@ -314,6 +314,10 @@ void DivPlatformC140::tick(bool sysTick) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (int i=0; i<4; i++) {
|
||||||
|
bankLabel[i][0]='0'+groupBank[i];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int DivPlatformC140::dispatch(DivCommand c) {
|
int DivPlatformC140::dispatch(DivCommand c) {
|
||||||
|
@ -557,6 +561,14 @@ float DivPlatformC140::getPostAmp() {
|
||||||
return 3.0f;
|
return 3.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DivChannelPair DivPlatformC140::getPaired(int ch) {
|
||||||
|
if (!is219) return DivChannelPair();
|
||||||
|
if ((ch&3)==0) {
|
||||||
|
return DivChannelPair(bankLabel[ch>>2],ch+1,ch+2,ch+3,-1,-1,-1,-1,-1);
|
||||||
|
}
|
||||||
|
return DivChannelPair();
|
||||||
|
}
|
||||||
|
|
||||||
const void* DivPlatformC140::getSampleMem(int index) {
|
const void* DivPlatformC140::getSampleMem(int index) {
|
||||||
return index == 0 ? sampleMem : NULL;
|
return index == 0 ? sampleMem : NULL;
|
||||||
}
|
}
|
||||||
|
@ -736,7 +748,9 @@ int DivPlatformC140::init(DivEngine* p, int channels, int sugRate, const DivConf
|
||||||
parent=p;
|
parent=p;
|
||||||
dumpWrites=false;
|
dumpWrites=false;
|
||||||
skipRegisterWrites=false;
|
skipRegisterWrites=false;
|
||||||
bankType=2;
|
bankType=0;
|
||||||
|
|
||||||
|
memset(bankLabel,0,16);
|
||||||
|
|
||||||
for (int i=0; i<totalChans; i++) {
|
for (int i=0; i<totalChans; i++) {
|
||||||
isMuted[i]=false;
|
isMuted[i]=false;
|
||||||
|
|
|
@ -75,6 +75,7 @@ class DivPlatformC140: public DivDispatch {
|
||||||
struct c140_t c140;
|
struct c140_t c140;
|
||||||
struct c219_t c219;
|
struct c219_t c219;
|
||||||
unsigned char regPool[512];
|
unsigned char regPool[512];
|
||||||
|
char bankLabel[4][4];
|
||||||
friend void putDispatchChip(void*,int);
|
friend void putDispatchChip(void*,int);
|
||||||
friend void putDispatchChan(void*,int,int);
|
friend void putDispatchChan(void*,int,int);
|
||||||
|
|
||||||
|
@ -87,6 +88,7 @@ class DivPlatformC140: 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);
|
||||||
DivDispatchOscBuffer* getOscBuffer(int chan);
|
DivDispatchOscBuffer* getOscBuffer(int chan);
|
||||||
unsigned char* getRegisterPool();
|
unsigned char* getRegisterPool();
|
||||||
int getRegisterPoolSize();
|
int getRegisterPoolSize();
|
||||||
|
|
Loading…
Reference in a new issue