From 987ca3ad113bbdf7a22c2692f59a50badb32bdce Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 12 Aug 2023 17:08:01 -0500 Subject: [PATCH] C140: VGM volume --- src/engine/platform/c140.cpp | 4 ++++ src/engine/platform/c140.h | 1 + src/engine/vgmOps.cpp | 4 ++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/engine/platform/c140.cpp b/src/engine/platform/c140.cpp index d98827754..1fb645070 100644 --- a/src/engine/platform/c140.cpp +++ b/src/engine/platform/c140.cpp @@ -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; } diff --git a/src/engine/platform/c140.h b/src/engine/platform/c140.h index 98ab77b63..bb34dac65 100644 --- a/src/engine/platform/c140.h +++ b/src/engine/platform/c140.h @@ -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); diff --git a/src/engine/vgmOps.cpp b/src/engine/vgmOps.cpp index 63b1e699f..26e973dbd 100644 --- a/src/engine/vgmOps.cpp +++ b/src/engine/vgmOps.cpp @@ -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;