Enum CPUClock

java.lang.Object
java.lang.Enum<CPUClock>
libsidplay.common.CPUClock
Alle implementierten Schnittstellen:
Serializable, Comparable<CPUClock>, java.lang.constant.Constable

public enum CPUClock extends Enum<CPUClock>
  • Enum-Konstanten - Details

    • AUTO

      public static final CPUClock AUTO
      Auto-detect clock frequency
    • PAL

      public static final CPUClock PAL
      PAL region clock frequency and screen refresh parameters
    • NTSC

      public static final CPUClock NTSC
      NTSC region clock frequency and screen refresh parameters
  • Felddetails

    • cpuFrequency

      private final double cpuFrequency
    • screenRefresh

      private final double screenRefresh
    • cyclesPerFrame

      private final int cyclesPerFrame
  • Konstruktordetails

    • CPUClock

      private CPUClock()
    • CPUClock

      private CPUClock(double cpuFrequency, int cyclesPerLine, int maxRasters)
  • Methodendetails

    • values

      public static CPUClock[] values()
      Gibt ein Array mit den Konstanten dieses Enum-Typs in der Reihenfolge ihrer Deklaration zurück.
      Gibt zurück:
      ein Array mit den Konstanten dieses Enumerationstyps in der Reihenfolge ihrer Deklaration
    • valueOf

      public static CPUClock valueOf(String name)
      Gibt die Enumerationskonstante dieses Typs mit dem angegebenen Namen zurück. Die Zeichenfolge muss exakt mit einer ID übereinstimmen, mit der eine Enumerationskonstante in diesem Typ deklariert wird. (Zusätzliche Leerzeichen sind nicht zulässig.)
      Parameter:
      name - Name der zurückzugebenden Enumerationskonstante.
      Gibt zurück:
      Enumerationskonstante mit dem angegebenen Namen
      Löst aus:
      IllegalArgumentException - wenn dieser Enumerationstyp keine Konstante mit dem angegebenen Namen enthält
      NullPointerException - wenn das Argument nicht angegeben wird
    • getCpuFrequency

      public double getCpuFrequency()
    • getCyclesPerFrame

      public int getCyclesPerFrame()
    • getScreenRefresh

      public double getScreenRefresh()
    • getCPUClock

      public static CPUClock getCPUClock(IEmulationSection emulation, SidTune tune)
      Detect CPU clock of a specific tune in the following order:
      1. CPU clock forced by user configuration
      2. CPU clock provided by tune information and if unknown, then
      3. default CPU clock
      Gibt zurück:
      CPU clock to be used for the tune