mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 00:34:03 +02:00
API CHANGE: Remove ma_context_is_loopback_supported().
Use `ma_context_get_device_info()` instead. Inspect the `isLoopbackSupported` member of `ma_device_backend_info`.
This commit is contained in:
-25
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user