mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
Fix a bug in fixed_sized_callback.
This is uninitializing the ring buffer before the device which results in a situation where a stray data callback may try touching the buffer after it's be uninitialized.
This commit is contained in:
@@ -132,9 +132,9 @@ int main(int argc, char** argv)
|
||||
printf("Press Enter to quit...\n");
|
||||
getchar();
|
||||
|
||||
ma_pcm_rb_uninit(&g_rb);
|
||||
ma_device_uninit(&device);
|
||||
|
||||
ma_pcm_rb_uninit(&g_rb);
|
||||
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user