Browse Source

windows: SDL_GetTicks64 -> SDL_GetTicks

Anonymous Maarten 1 year ago
parent
commit
13a6a72b88
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/core/windows/SDL_immdevice.c

+ 2 - 2
src/core/windows/SDL_immdevice.c

@@ -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. */