Show device IDs in the deviceio test.

This commit is contained in:
David Reid
2026-01-11 07:06:23 +10:00
parent 660d5f6f9e
commit adce75cba6
+6
View File
@@ -321,7 +321,13 @@ ma_result print_device_info(const ma_device_info* pDeviceInfo, ma_bool32 printDe
{
MA_ASSERT(pDeviceInfo != NULL);
/* It's been useful to be able to see the ID of the device when debugging. */
if (g_State.context.pVTable == ma_device_backend_alsa) {
printf("[%s] %s\n", pDeviceInfo->id.alsa, pDeviceInfo->name);
} else {
printf("%s\n", pDeviceInfo->name);
}
if (printDetailedInfo) {
ma_uint32 iFormat;