mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Minor change to the deviceio test.
This commit is contained in:
@@ -240,10 +240,14 @@ ma_result print_device_info(ma_context* pContext, ma_device_type deviceType, con
|
|||||||
|
|
||||||
MA_ASSERT(pDeviceInfo != NULL);
|
MA_ASSERT(pDeviceInfo != NULL);
|
||||||
|
|
||||||
|
#if 1
|
||||||
result = ma_context_get_device_info(pContext, deviceType, &pDeviceInfo->id, ma_share_mode_shared, &detailedDeviceInfo);
|
result = ma_context_get_device_info(pContext, deviceType, &pDeviceInfo->id, ma_share_mode_shared, &detailedDeviceInfo);
|
||||||
if (result != MA_SUCCESS) {
|
if (result != MA_SUCCESS) {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
detailedDeviceInfo = *pDeviceInfo;
|
||||||
|
#endif
|
||||||
|
|
||||||
printf("%s\n", pDeviceInfo->name);
|
printf("%s\n", pDeviceInfo->name);
|
||||||
printf(" Default: %s\n", (detailedDeviceInfo._private.isDefault) ? "Yes" : "No");
|
printf(" Default: %s\n", (detailedDeviceInfo._private.isDefault) ? "Yes" : "No");
|
||||||
|
|||||||
Reference in New Issue
Block a user