C140: VGM volume

This commit is contained in:
tildearrow 2023-08-12 17:08:01 -05:00
parent d7de177d26
commit 987ca3ad11
3 changed files with 7 additions and 2 deletions

View File

@ -398,6 +398,10 @@ int DivPlatformC140::getRegisterPoolSize() {
return 512;
}
float DivPlatformC140::getPostAmp() {
return 3.0f;
}
const void* DivPlatformC140::getSampleMem(int index) {
return index == 0 ? sampleMem : NULL;
}

View File

@ -77,6 +77,7 @@ class DivPlatformC140: public DivDispatch {
DivDispatchOscBuffer* getOscBuffer(int chan);
unsigned char* getRegisterPool();
int getRegisterPoolSize();
float getPostAmp();
void reset();
void forceIns();
void tick(bool sysTick=true);

View File

@ -1788,12 +1788,12 @@ SafeWriter* DivEngine::saveVGM(bool* sysToExport, bool loop, int version, bool p
if (!hasNamco) {
// ?!?!?!
hasNamco=disCont[i].dispatch->rate/2;
CHIP_VOL(40,0.4);
CHIP_VOL(40,1.0);
willExport[i]=true;
writeC140[0]=disCont[i].dispatch;
} else if (!(hasNamco&0x40000000)) {
isSecond[i]=true;
CHIP_VOL_SECOND(40,0.4);
CHIP_VOL_SECOND(40,1.0);
willExport[i]=true;
writeC140[1]=disCont[i].dispatch;
hasNamco|=0x40000000;