mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 08:44:04 +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");
|
printf("Press Enter to quit...\n");
|
||||||
getchar();
|
getchar();
|
||||||
|
|
||||||
ma_pcm_rb_uninit(&g_rb);
|
|
||||||
ma_device_uninit(&device);
|
ma_device_uninit(&device);
|
||||||
|
ma_pcm_rb_uninit(&g_rb);
|
||||||
|
|
||||||
(void)argc;
|
(void)argc;
|
||||||
(void)argv;
|
(void)argv;
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user