From 714afe2c42d71c0094e0c386450e6c68134b7ca9 Mon Sep 17 00:00:00 2001 From: David Reid Date: Tue, 15 Jul 2025 11:33:35 +1000 Subject: [PATCH] API CHANGE: Remove ma_context_is_loopback_supported(). Use `ma_context_get_device_info()` instead. Inspect the `isLoopbackSupported` member of `ma_device_backend_info`. --- miniaudio.h | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/miniaudio.h b/miniaudio.h index fc553025..2b9b9c23 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -8400,22 +8400,6 @@ This leaves pDeviceInfo unmodified in the result of an error. */ MA_API ma_result ma_context_get_device_info(ma_context* pContext, ma_device_type deviceType, const ma_device_id* pDeviceID, ma_device_info* pDeviceInfo); -/* -Determines if the given context supports loopback mode. - - -Parameters ----------- -pContext (in) - A pointer to the context getting queried. - - -Return Value ------------- -MA_TRUE if the context supports loopback mode; MA_FALSE otherwise. -*/ -MA_API ma_bool32 ma_context_is_loopback_supported(ma_context* pContext); - /* @@ -44777,15 +44761,6 @@ MA_API ma_result ma_context_get_device_info(ma_context* pContext, ma_device_type return result; } -MA_API ma_bool32 ma_context_is_loopback_supported(ma_context* pContext) -{ - if (pContext == NULL) { - return MA_FALSE; - } - - return pContext->pVTable == ma_device_backend_wasapi; -} - MA_API ma_device_config ma_device_config_init(ma_device_type deviceType) {