Package net.raphimc.audiomixer.util
Class TimerHack
java.lang.Object
net.raphimc.audiomixer.util.TimerHack
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanSet this to false (Before using the AudioMixer API) to disable the timer hack (Useful if you have your own way of enabling high resolution timers) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidStarts a thread which indefinitely sleeps to force the JVM to enable high resolution timers on Windows.
-
Field Details
-
ENABLED
public static boolean ENABLEDSet this to false (Before using the AudioMixer API) to disable the timer hack (Useful if you have your own way of enabling high resolution timers)
-
-
Constructor Details
-
TimerHack
public TimerHack()
-
-
Method Details
-
ensureRunning
public static void ensureRunning()Starts a thread which indefinitely sleeps to force the JVM to enable high resolution timers on Windows.
-