1#ifndef COASTLINE_EAR_TIMER_H
2#define COASTLINE_EAR_TIMER_H
4#if TGR_PLATFORM == TGR_PLATFORM_WIN
9#include <SDL3/SDL_timer.h>
48#if TGR_PLATFORM == TGR_PLATFORM_WIN
54extern UINT g_uPlaybackTimerId;
60extern WORD g_wTimerResolutionMs;
66extern TIMECAPS g_earTimerCapabilities;
74extern SDL_TimerID g_uPlaybackTimerId;
83DWORD GetEarTimeMilliseconds(
void);
91extern DWORD g_dwPreviousPlaybackUpdateTimeMs;
98extern DWORD g_dwPlaybackUpdateTimeMs;
int __stdcall EarStartTimerExportWrapper(void)
Forward periodic timer creation to EAR_DLL_StartTimer().
void __stdcall EarShutDownTimerExportWrapper(void)
Forward timer cancellation to EAR_DLL_ShutDownTimer().
int __stdcall EAR_DLL_StartTimer(void)
Attempt to replace an existing timer and schedule playback updates every 50 milliseconds.
void __stdcall EAR_DLL_ShutDownTimer(void)
Cancel the periodic playback timer if present and clear its identifier on success.
The integer and floating-point types of the console, for headers shared with Windows.