mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 00:34:03 +02:00
Return a more accurate error code from ma_device_init().
This commit is contained in:
+1
-1
@@ -26277,7 +26277,7 @@ ma_result ma_device_init(ma_context* pContext, const ma_device_config* pConfig,
|
|||||||
|
|
||||||
result = pContext->onDeviceInit(pContext, &config, pDevice);
|
result = pContext->onDeviceInit(pContext, &config, pDevice);
|
||||||
if (result != MA_SUCCESS) {
|
if (result != MA_SUCCESS) {
|
||||||
return MA_NO_BACKEND; /* The error message will have been posted with ma_post_error() by the source of the error so don't bother calling it here. */
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
ma_device__post_init_setup(pDevice, pConfig->deviceType);
|
ma_device__post_init_setup(pDevice, pConfig->deviceType);
|
||||||
|
|||||||
Reference in New Issue
Block a user