mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 00:34:03 +02:00
Rename a variable.
This commit is contained in:
+3
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user