mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-12-28 12:33:04 +00:00
Correctly zero-out entire structure
This commit is contained in:
parent
ef7472b3ac
commit
2cbc53ef45
@ -421,7 +421,7 @@ static long opensl_createSoundBuffer(const AudioContext_s *audio_context, INOUT
|
||||
voice = ctx->recycledVoices;
|
||||
ctx->recycledVoices = voice->next;
|
||||
uint8_t *prevBuffer = voice->ringBuffer;
|
||||
memset(voice, 0x0, sizeof(SLVoice *));
|
||||
memset(voice, 0x0, sizeof(*voice));
|
||||
voice->bufferSize = bufferSize;
|
||||
voice->ringBuffer = prevBuffer;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user