mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-01 00:43:02 +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;
|
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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue