Klasse SIDWrite

java.lang.Object
server.netsiddev.SIDWrite

public final class SIDWrite extends Object
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    private final int
     
    private final int
     
    private boolean
     
    private boolean
     
    private final byte
     
    private final byte
     
  • Konstruktorübersicht

    Konstruktoren
    Modifizierer
    Konstruktor
    Beschreibung
    private
     
     
    SIDWrite(int chip, byte reg, byte data, int cycles)
    This command is a general write command to SID.
    private
    SIDWrite(int chip, int cycles)
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    protected int
    Gets the SID chip being used in this SIDWrite instance.
    protected int
    Gets the number of cycles writing will take in this SIDWrite instance.
    protected byte
    Gets the register being written to in this SIDWrite instance.
    protected byte
    Gets the value being written to the register in this SIDWrite instance.
    protected boolean
    Is an "END" command?
    protected boolean
    Is command a no-write command?
    static SIDWrite
    This command instructs AudioGeneratorThread to exit cleanly.
    static SIDWrite
    makePureDelay(int sid, int cycles)
    This command instructs AudioGeneratorThread about the need to execute a pure delay on specified SID.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • chip

      private final int chip
    • reg

      private final byte reg
    • value

      private final byte value
    • cycles

      private final int cycles
    • pureDelay

      private boolean pureDelay
    • end

      private boolean end
  • Konstruktordetails

    • SIDWrite

      public SIDWrite(int chip, byte reg, byte data, int cycles) throws InvalidCommandException
      This command is a general write command to SID. Reg must be between 0 .. 0x1f and cycles > 0.
      Parameter:
      chip - The specified SID chip to write to.
      reg - The SID register to write to.
      data - The data to write to the specified SID register.
      cycles - Cycles to spend on writing the data.
      Löst aus:
      InvalidCommandException
    • SIDWrite

      private SIDWrite(int chip, int cycles) throws InvalidCommandException
      Löst aus:
      InvalidCommandException
    • SIDWrite

      private SIDWrite()
  • Methodendetails

    • makePureDelay

      public static SIDWrite makePureDelay(int sid, int cycles) throws InvalidCommandException
      This command instructs AudioGeneratorThread about the need to execute a pure delay on specified SID. Throws if cycles < 0.
      Parameter:
      sid - The SID to execute a pure delay on.
      cycles - Amount of cycles to execute the pure delay for.
      Gibt zurück:
      A new SIDWrite instance.
      Löst aus:
      InvalidCommandException
    • isPureDelay

      protected boolean isPureDelay()
      Is command a no-write command?
      Gibt zurück:
      True if the SIDWrite object is a no-write command; false otherwise.
    • makeEnd

      public static SIDWrite makeEnd()
      This command instructs AudioGeneratorThread to exit cleanly.
      Gibt zurück:
      A new SIDWrite instance.
    • isEnd

      protected boolean isEnd()
      Is an "END" command?
      Gibt zurück:
      True if the SIDWrite object is an END command; false otherwise.
    • getChip

      protected int getChip()
      Gets the SID chip being used in this SIDWrite instance.
      Gibt zurück:
      The SID chip being used in this SIDWrite instance.
    • getRegister

      protected byte getRegister()
      Gets the register being written to in this SIDWrite instance.
      Gibt zurück:
      The register being written to in this SIDWrite instance.
    • getValue

      protected byte getValue()
      Gets the value being written to the register in this SIDWrite instance.
      Gibt zurück:
      The value being written to the register in this SIDWrite instance.
    • getCycles

      protected int getCycles()
      Gets the number of cycles writing will take in this SIDWrite instance.
      Gibt zurück:
      The number of cycles writing will take in this SIDWrite instance.