windows: SDL_GetTicks64 -> SDL_GetTicks

main
Anonymous Maarten 2023-05-27 02:02:46 +02:00
parent b4291412a4
commit 13a6a72b88
1 changed files with 2 additions and 2 deletions

View File

@ -357,7 +357,7 @@ void SDL_IMMDevice_Quit(void)
int SDL_IMMDevice_Get(LPCWSTR devid, IMMDevice **device, SDL_bool iscapture)
{
const Uint64 timeout = SDL_GetTicks64() + 8000; /* intel's audio drivers can fail for up to EIGHT SECONDS after a device is connected or we wake from sleep. */
const Uint64 timeout = SDL_GetTicks() + 8000; /* intel's audio drivers can fail for up to EIGHT SECONDS after a device is connected or we wake from sleep. */
HRESULT ret;
SDL_assert(device != NULL);
@ -375,7 +375,7 @@ int SDL_IMMDevice_Get(LPCWSTR devid, IMMDevice **device, SDL_bool iscapture)
}
if (ret == E_NOTFOUND) {
const Uint64 now = SDL_GetTicks64();
const Uint64 now = SDL_GetTicks();
if (timeout > now) {
const Uint64 ticksleft = timeout - now;
SDL_Delay(SDL_min(ticksleft, 300)); /* wait awhile and try again. */