QSound: initialize memory to 0

for some reason this fixes some glitches?
This commit is contained in:
tildearrow 2022-03-01 02:38:37 -05:00
parent 4ff056c64f
commit 236ab5b3fe

View file

@ -501,6 +501,7 @@ void DivEngine::renderSamples() {
// step 4: allocate qsound pcm samples
if (qsoundMem==NULL) qsoundMem=new unsigned char[16777216];
memset(qsoundMem,0,16777216);
memPos=0;
for (int i=0; i<song.sampleLen; i++) {