diff --git a/src/engine/platform/c140.cpp b/src/engine/platform/c140.cpp index 693f462c7..14903506b 100644 --- a/src/engine/platform/c140.cpp +++ b/src/engine/platform/c140.cpp @@ -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) { @@ -557,6 +561,14 @@ float DivPlatformC140::getPostAmp() { 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) { return index == 0 ? sampleMem : NULL; } @@ -736,7 +748,9 @@ int DivPlatformC140::init(DivEngine* p, int channels, int sugRate, const DivConf parent=p; dumpWrites=false; skipRegisterWrites=false; - bankType=2; + bankType=0; + + memset(bankLabel,0,16); for (int i=0; i