Package server.netsiddev
Klasse SIDWrite
java.lang.Object
server.netsiddev.SIDWrite
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibung(Package privat) intgetChip()Gets the SID chip being used in this SIDWrite instance.(Package privat) intGets the number of cycles writing will take in this SIDWrite instance.(Package privat) byteGets the register being written to in this SIDWrite instance.(Package privat) bytegetValue()Gets the value being written to the register in this SIDWrite instance.(Package privat) booleanisEnd()Is an "END" command?(Package privat) booleanIs command a no-write command?static SIDWritemakeEnd()This command instructs AudioGeneratorThread to exit cleanly.static SIDWritemakePureDelay(int sid, int cycles) This command instructs AudioGeneratorThread about the need to execute a pure delay on specified SID.
-
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 final boolean end
-
-
Konstruktordetails
-
SIDWrite
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- invalid command
-
SIDWrite
- Löst aus:
InvalidCommandException
-
SIDWrite
private SIDWrite()
-
-
Methodendetails
-
makePureDelay
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- Number of cycles to execute the pure delay for.- Gibt zurück:
- A new SIDWrite instance.
- Löst aus:
InvalidCommandException- invalid command
-
isPureDelay
boolean isPureDelay()Is command a no-write command?- Gibt zurück:
- True if the SIDWrite object is a no-write command; false otherwise.
-
makeEnd
This command instructs AudioGeneratorThread to exit cleanly.- Gibt zurück:
- A new SIDWrite instance.
-
isEnd
boolean isEnd()Is an "END" command?- Gibt zurück:
- True if the SIDWrite object is an END command; false otherwise.
-
getChip
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
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
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
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.
-