Class TimerHack

java.lang.Object
net.raphimc.audiomixer.util.TimerHack

public class TimerHack extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static boolean
    Set 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Starts a thread which indefinitely sleeps to force the JVM to enable high resolution timers on Windows.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ENABLED

      public static boolean ENABLED
      Set 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.