mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 23:13:01 +00:00
C140: VGM volume
This commit is contained in:
parent
d7de177d26
commit
987ca3ad11
3 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue