Final tweaks. Removed unnecessary if statement.

This commit is contained in:
znakeeye
2025-03-07 22:54:30 +01:00
committed by David Reid
parent 7158cf58f9
commit b3ab0567c3
+2 -4
View File
@@ -38451,9 +38451,9 @@ static ma_result ma_device_reinit__aaudio(ma_device* pDevice, ma_device_type dev
/* We got disconnected! Retry a few times, until we find a connected device! */
iAttempt = 0;
while (iAttempt++ < maxAttempts) {
/* Device tearing down? No need to reroute! Callers should continue as normal. */
/* Device tearing down? No need to reroute! */
if (ma_atomic_bool32_get(&pDevice->aaudio.isTearingDown)) {
result = MA_SUCCESS;
result = MA_SUCCESS; /* Caller should continue as normal. */
break;
}
@@ -38524,7 +38524,6 @@ static ma_result ma_device_reinit__aaudio(ma_device* pDevice, ma_device_type dev
break;
}
if (result == MA_SUCCESS) {
/* We'll only ever do this in response to a reroute. */
ma_device__on_notification_rerouted(pDevice);
@@ -38543,7 +38542,6 @@ static ma_result ma_device_reinit__aaudio(ma_device* pDevice, ma_device_type dev
ma_device_stop(pDevice); /* Do a full device stop so we set internal state correctly. */
}
}
}
if (result == MA_SUCCESS) {
/* Reroute successful! */