From adce75cba69e9ede8c621008acc67962af70c120 Mon Sep 17 00:00:00 2001 From: David Reid Date: Sun, 11 Jan 2026 07:06:23 +1000 Subject: [PATCH] Show device IDs in the deviceio test. --- tests/deviceio/deviceio.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/deviceio/deviceio.c b/tests/deviceio/deviceio.c index e7edd2de..a05a1612 100644 --- a/tests/deviceio/deviceio.c +++ b/tests/deviceio/deviceio.c @@ -321,7 +321,13 @@ ma_result print_device_info(const ma_device_info* pDeviceInfo, ma_bool32 printDe { MA_ASSERT(pDeviceInfo != NULL); - printf("%s\n", pDeviceInfo->name); + /* 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;