mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Show device IDs in the deviceio test.
This commit is contained in:
@@ -321,7 +321,13 @@ ma_result print_device_info(const ma_device_info* pDeviceInfo, ma_bool32 printDe
|
|||||||
{
|
{
|
||||||
MA_ASSERT(pDeviceInfo != NULL);
|
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);
|
printf("%s\n", pDeviceInfo->name);
|
||||||
|
}
|
||||||
|
|
||||||
if (printDetailedInfo) {
|
if (printDetailedInfo) {
|
||||||
ma_uint32 iFormat;
|
ma_uint32 iFormat;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user