mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 16:54:03 +02:00
Final tweaks. Removed unnecessary if statement.
This commit is contained in:
+2
-4
@@ -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! */
|
/* We got disconnected! Retry a few times, until we find a connected device! */
|
||||||
iAttempt = 0;
|
iAttempt = 0;
|
||||||
while (iAttempt++ < maxAttempts) {
|
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)) {
|
if (ma_atomic_bool32_get(&pDevice->aaudio.isTearingDown)) {
|
||||||
result = MA_SUCCESS;
|
result = MA_SUCCESS; /* Caller should continue as normal. */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -38524,7 +38524,6 @@ static ma_result ma_device_reinit__aaudio(ma_device* pDevice, ma_device_type dev
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result == MA_SUCCESS) {
|
|
||||||
/* We'll only ever do this in response to a reroute. */
|
/* We'll only ever do this in response to a reroute. */
|
||||||
ma_device__on_notification_rerouted(pDevice);
|
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. */
|
ma_device_stop(pDevice); /* Do a full device stop so we set internal state correctly. */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (result == MA_SUCCESS) {
|
if (result == MA_SUCCESS) {
|
||||||
/* Reroute successful! */
|
/* Reroute successful! */
|
||||||
|
|||||||
Reference in New Issue
Block a user