chip sample selection, part 2
add functions to retrieve whether a sample was loaded in chip memory eventually I'll put warning feedback on the sample list
This commit is contained in:
parent
1c8440b68d
commit
85cb64b227
29 changed files with 173 additions and 0 deletions
|
|
@ -1757,6 +1757,12 @@ size_t DivPlatformOPL::getSampleMemUsage(int index) {
|
|||
return (index==0 && adpcmChan>=0) ? adpcmBMemLen : 0;
|
||||
}
|
||||
|
||||
bool DivPlatformOPL::isSampleLoaded(int index, int sample) {
|
||||
if (index!=0) return false;
|
||||
if (sample<0 || sample>255) return false;
|
||||
return sampleLoaded[sample];
|
||||
}
|
||||
|
||||
void DivPlatformOPL::renderSamples() {
|
||||
if (adpcmChan<0) return;
|
||||
memset(adpcmBMem,0,getSampleMemCapacity(0));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue