From cc4db76c26da9e15a7d544deb060e8ae7d622eeb Mon Sep 17 00:00:00 2001 From: David Reid Date: Tue, 30 Dec 2025 09:32:11 +1000 Subject: [PATCH] Minor update to documentation for the single-threaded example. --- examples/single_threaded.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/single_threaded.c b/examples/single_threaded.c index 694bd539..bd8a9425 100644 --- a/examples/single_threaded.c +++ b/examples/single_threaded.c @@ -21,6 +21,9 @@ use `MA_BLOCKING_MODE_NON_BLOCKING`. You should only ever call `ma_device_step()` in single-threaded mode. In multi-threaded mode (the default), you should never call this function manually. You can query whether or not the device is in single-threaded mode via `ma_device_get_threading_mode()`. + +When in single-threaded mode, you should ensure that all `ma_device` API calls are made from the same +thread. This is due to some backends that require it, such as WASAPI. */ #include "../miniaudio.c"