Package libsidplay.sidtune
Klasse SidTune
java.lang.Object
libsidplay.sidtune.SidTune
- Autor:
- Ken Händel
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic enumPossible clock speeds of a SidTune.static enumSID types the SidTune may be compatible with.static enumPossible models the SidTunes were meant to play on.static enum -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected SidTuneInfoprivate static final intMaximum possible file size of C64 programs to load.static final SidTuneDo not load a tune, just reset C64.static final intDelay in cycles to wait for completion of a normal RESET.static boolean -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected static final byte[]getContents(File file) Does not affect status of object, and therefore can be used to load files.private static byte[]getContents(InputStream stream) final SidTuneInfogetInfo()Retrieve sub-song specific information.protected abstract longReturn delay in C64 clocks before song init is done.static longgetInitDelay(SidTune tune) abstract StringgetMD5Digest(MD5Method md5Method) Calculate MD5 checksum.abstract SidIdInfo.PlayerInfoSectiongetPlayerInfo(String playerName) Search player ID Info.abstract SidIdInfo.PlayerInfoSectiongetPlayerInfo(String playerName, byte[] sidIdInfoBin) byte[]static intgetSIDAddress(IEmulationSection emulation, SidTune tune, int sidNum) Get SID address of specified SID number 0xd400 - always used for first SID fake stereo - a second SID at the same address (0xd400) forced SID base - configured value for forced stereo or 3-SID output tune SID base - SID base detected by tune information 0 - SID is not used Note: this function is static, even if no tune is loaded stereo mode can be configured!getSongSpeed(int selected) Gets the speed of the selected song.intCreate 32-bit PSID-style speed word.abstract Collection<String> identify()Identify the player ID of a tuneabstract Collection<String> identify(byte[] sidIdCfgBin) static booleanisFakeStereoSid(IEmulationSection emulation, SidTune tune, int sidNum) Detect fake-stereo SID (second SID at the same address).static booleanisSIDUsed(IEmulationSection emulation, SidTune tune, int sidNum) Is specified SID number in use?static SidTuneLoads a file as a SidTune (PSID, PRG, P00, T64, MUS, MP3).protected static SidTuneLoad tune (PSID, PRG, P00, T64).static SidTuneload(String url, InputStream stream) Loads an InputStream as a SidTune (PSID, PRG, P00, T64).abstract IntegerplaceProgramInMemory(byte[] c64buf) Copy program into C64 memory.abstract IntegerplaceProgramInMemory(byte[] mem, byte[] PSID) voidprepare()abstract void
-
Felddetails
-
RESET
Do not load a tune, just reset C64. -
RESET_INIT_DELAY
public static final int RESET_INIT_DELAYDelay in cycles to wait for completion of a normal RESET.- Siehe auch:
-
USE_KICKASSEMBLER
public static boolean USE_KICKASSEMBLER -
MAX_MEM_64K
private static final int MAX_MEM_64KMaximum possible file size of C64 programs to load.- Siehe auch:
-
info
-
-
Konstruktordetails
-
SidTune
public SidTune()
-
-
Methodendetails
-
load
Loads a file as a SidTune (PSID, PRG, P00, T64, MUS, MP3).- Parameter:
file- The file to load.- Gibt zurück:
- A SidTune instance of the specified file to load.
- Löst aus:
IOExceptionSidTuneError
-
load
Loads an InputStream as a SidTune (PSID, PRG, P00, T64).- Parameter:
url- URL of the given streamstream- The InputStream to load.- Gibt zurück:
- A SidTune of the specified InputStream.
- Löst aus:
IOException- If the stream cannot be read.SidTuneError
-
load
Load tune (PSID, PRG, P00, T64).- Parameter:
name- name of the file (for file extension check)fileContents- The tune data to load.- Gibt zurück:
- A SidTune of the specified contents.
- Löst aus:
IOException- If the stream cannot be read.SidTuneError
-
getPSidHeader
public byte[] getPSidHeader() -
getContents
Does not affect status of object, and therefore can be used to load files.- Parameter:
file- The file to load.- Gibt zurück:
- The data of the loaded file.
- Löst aus:
IOException- if the file could not be found.
-
getContents
- Löst aus:
IOException
-
getInfo
Retrieve sub-song specific information.- Gibt zurück:
- Sub-song specific information about the currently loaded tune.
-
getSongSpeed
Gets the speed of the selected song.- Parameter:
selected- The song to get the speed of.- Gibt zurück:
- The speed of the selected song.
-
getSongSpeedWord
public int getSongSpeedWord()Create 32-bit PSID-style speed word. Each bit in 'speed' specifies the speed for the corresponding song number, i.e. bit 0 specifies the speed for song 1. If there are more than 32 song, the speed specified for song 32 is also used for all higher numbered songs. A 0 bit specifies vertical blank interrupt (50Hz PAL, 60Hz NTSC), and a 1 bit specifies CIA 1 timer interrupt (default 60Hz).- Gibt zurück:
- 32-bit PSID-style speed word (defaults to CIA 1 timer interrupt)
-
isFakeStereoSid
Detect fake-stereo SID (second SID at the same address).- Parameter:
tune- current tunesidNum- current SID number- Gibt zurück:
- fake-stereo SID has been detected
-
isSIDUsed
Is specified SID number in use?- 0 - first SID is always used
- 1 - second SID is only used for stereo tunes
- 2 - third SID is used for 3-SID tunes
-
getSIDAddress
Get SID address of specified SID number- 0xd400 - always used for first SID
- fake stereo - a second SID at the same address (0xd400)
- forced SID base - configured value for forced stereo or 3-SID output
- tune SID base - SID base detected by tune information
- 0 - SID is not used
-
placeProgramInMemory
Copy program into C64 memory.- Parameter:
c64buf-- Gibt zurück:
- play driver address
- Löst aus:
SidTuneError
-
placeProgramInMemory
-
save
- Parameter:
destFileName- Destination for the file.- Löst aus:
IOException
-
identify
Identify the player ID of a tune- Gibt zurück:
- the player IDs as a list
-
identify
-
getPlayerInfo
Search player ID Info.- Parameter:
playerName- player to get infos for- Gibt zurück:
- player infos (or null, if not found)
-
getPlayerInfo
-
getMD5Digest
Calculate MD5 checksum. -
getInitDelay
protected abstract long getInitDelay()Return delay in C64 clocks before song init is done. -
getInitDelay
-
prepare
public void prepare()
-