diff --git a/miniaudio.h b/miniaudio.h index fae901db..492f3da9 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -7240,7 +7240,7 @@ MA_API ma_result ma_device_job_thread_next(ma_device_job_thread* pJobThread, ma_ typedef enum ma_threading_mode { - MA_THREADING_MODE_MULTITHREADED = 0, /* Default. */ + MA_THREADING_MODE_MULTI_THREADED = 0, /* Default. */ MA_THREADING_MODE_SINGLE_THREADED } ma_threading_mode; @@ -43388,7 +43388,7 @@ static ma_result ma_device_step__webaudio(ma_device* pDevice, ma_blocking_mode b mode we just do data processing straight from the Web Audio callback. In single-threaded mode we need to make sure data processing is done from the step function, which is where this comes in. */ - if (ma_device_get_threading_mode(pDevice) == MA_THREADING_MODE_MULTITHREADED) { + if (ma_device_get_threading_mode(pDevice) == MA_THREADING_MODE_MULTI_THREADED) { MA_ASSERT(!"[Web Audio] Incorrectly calling step() in multi-threaded mode."); return MA_ERROR; } @@ -45597,7 +45597,7 @@ MA_API ma_device_type ma_device_get_type(ma_device* pDevice) MA_API ma_threading_mode ma_device_get_threading_mode(ma_device* pDevice) { if (pDevice == NULL) { - return MA_THREADING_MODE_MULTITHREADED; + return MA_THREADING_MODE_MULTI_THREADED; } return pDevice->threadingMode; diff --git a/tests/emscripten/emscripten.c b/tests/emscripten/emscripten.c index d19832d6..5d48c6c0 100644 --- a/tests/emscripten/emscripten.c +++ b/tests/emscripten/emscripten.c @@ -9,7 +9,7 @@ #define DEVICE_CHANNELS 2 #define DEVICE_SAMPLE_RATE 48000 -ma_threading_mode threadingMode = MA_THREADING_MODE_MULTITHREADED; +ma_threading_mode threadingMode = MA_THREADING_MODE_MULTI_THREADED; /*ma_threading_mode threadingMode = MA_THREADING_MODE_SINGLE_THREADED;*/ ma_bool32 isRunning = MA_FALSE;