C140 fixes and optimizations

Minor optimization
Move output shift function to dispatch
Fix loop
Fix pan scaling if using INS_AMIGA
correct about
This commit is contained in:
cam900 2023-08-10 20:24:10 +09:00
parent 21d1dfefa1
commit 4d7d610f8c
7 changed files with 55 additions and 35 deletions

View file

@ -32,6 +32,7 @@ class DivPlatformC140: public DivDispatch {
int chPanL, chPanR;
int chVolL, chVolR;
int macroVolMul;
int macroPanMul;
Channel():
SharedChannel<int>(255),
audPos(0),
@ -44,7 +45,8 @@ class DivPlatformC140: public DivDispatch {
chPanR(255),
chVolL(255),
chVolR(255),
macroVolMul(64) {}
macroVolMul(64),
macroPanMul(127) {}
};
Channel chan[24];
DivDispatchOscBuffer* oscBuf[24];