mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user