Rename a variable.

This commit is contained in:
David Reid
2026-02-01 11:03:46 +10:00
parent ac12fa70e0
commit 53fce8453c
+3 -3
View File
@@ -7931,7 +7931,7 @@ struct ma_device
ma_threading_mode threadingMode;
ma_bool32 hasAudioThread;
ma_uint32 sampleRate;
ma_atomic_device_status state; /* The state of the device is variable and can change at any time on any thread. Must be used atomically. */
ma_atomic_device_status status; /* The state of the device is variable and can change at any time on any thread. Must be used atomically. */
ma_device_data_proc onData; /* Set once at initialization time and should not be changed after. */
ma_device_notification_proc onNotification; /* Set once at initialization time and should not be changed after. */
void* pUserData; /* Application defined data. */
@@ -20871,7 +20871,7 @@ static MA_INLINE void ma_device_set_status(ma_device* pDevice, ma_device_status
return;
}
ma_atomic_device_status_set(&pDevice->state, newStatus);
ma_atomic_device_status_set(&pDevice->status, newStatus);
}
@@ -49422,7 +49422,7 @@ MA_API ma_device_status ma_device_get_status(const ma_device* pDevice)
return ma_device_status_uninitialized;
}
return ma_atomic_device_status_get((ma_atomic_device_status*)&pDevice->state); /* Naughty cast to get rid of a const warning. */
return ma_atomic_device_status_get((ma_atomic_device_status*)&pDevice->status); /* Naughty cast to get rid of a const warning. */
}
MA_API void ma_device_set_errored(ma_device* pDevice)