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; return 512;
} }
float DivPlatformC140::getPostAmp() {
return 3.0f;
}
const void* DivPlatformC140::getSampleMem(int index) { const void* DivPlatformC140::getSampleMem(int index) {
return index == 0 ? sampleMem : NULL; return index == 0 ? sampleMem : NULL;
} }

View file

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

View file

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