Implement getSampleMemOffset for further optimize VGM logging (specifically OPL4 PCM)
This commit is contained in:
parent
9d1c10fcea
commit
a5148a3441
9 changed files with 60 additions and 25 deletions
|
|
@ -3236,6 +3236,10 @@ size_t DivPlatformOPL::getSampleMemUsage(int index) {
|
|||
(index==0 && adpcmChan>=0)?adpcmBMemLen:0;
|
||||
}
|
||||
|
||||
size_t DivPlatformOPL::getSampleMemOffset(int index) {
|
||||
return (index==0 && pcmChanOffs>=0 && ramSize<=0x200000)?0x200000:0;
|
||||
}
|
||||
|
||||
bool DivPlatformOPL::isSampleLoaded(int index, int sample) {
|
||||
if (index!=0) return false;
|
||||
if (sample<0 || sample>255) return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue