mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-07-01 01:29:43 +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;
|
voice = ctx->recycledVoices;
|
||||||
ctx->recycledVoices = voice->next;
|
ctx->recycledVoices = voice->next;
|
||||||
uint8_t *prevBuffer = voice->ringBuffer;
|
uint8_t *prevBuffer = voice->ringBuffer;
|
||||||
memset(voice, 0x0, sizeof(SLVoice *));
|
memset(voice, 0x0, sizeof(*voice));
|
||||||
voice->bufferSize = bufferSize;
|
voice->bufferSize = bufferSize;
|
||||||
voice->ringBuffer = prevBuffer;
|
voice->ringBuffer = prevBuffer;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user