Add a new errored status.

This allows a backend to put the device into an errored state to
indicate that it is no longer usable and needs to be reinitialized.
This commit is contained in:
David Reid
2026-01-03 11:01:46 +10:00
parent c64a5c7457
commit c314eb0fa5
2 changed files with 126 additions and 28 deletions
+10
View File
@@ -400,6 +400,16 @@ void on_notification(const ma_device_notification* pNotification)
printf("Interruption Ended\n");
} break;
case ma_device_notification_type_unlocked:
{
printf("Unlocked\n");
} break;
case ma_device_notification_type_errored:
{
printf("Errored\n");
} break;
default: break;
}
}