mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-29 16:03:01 +00:00
Fix segmentation fault
This commit is contained in:
parent
65f48cc574
commit
62af456840
1 changed files with 2 additions and 2 deletions
|
@ -3122,10 +3122,10 @@ const DivMemoryComposition* DivPlatformOPL::getMemCompo(int index) {
|
|||
|
||||
void DivPlatformOPL::renderSamples(int sysID) {
|
||||
if (adpcmChan<0 && pcmChanOffs<0) return;
|
||||
if (adpcmBMem!=NULL) {
|
||||
if (adpcmChan>=0 && adpcmBMem!=NULL) {
|
||||
memset(adpcmBMem,0,262144);
|
||||
}
|
||||
if (pcmMem!=NULL) {
|
||||
if (pcmChanOffs>=0 && pcmMem!=NULL) {
|
||||
memset(pcmMem,0,4194304);
|
||||
}
|
||||
memset(sampleOffPCM,0,256*sizeof(unsigned int));
|
||||
|
|
Loading…
Reference in a new issue