Modifier and Type | Class and Description |
---|---|
static class |
SidTune.Clock
Possible clock speeds of a SidTune.
|
static class |
SidTune.Compatibility
SID types the SidTune may be compatible with.
|
static class |
SidTune.Model
Possible models the SidTunes were meant to play on.
|
static class |
SidTune.Speed |
Modifier and Type | Field and Description |
---|---|
protected SidTuneInfo |
info |
static SidTune |
RESET
Do not load a tune, just reset C64.
|
protected static int |
RESET_INIT_DELAY
Delay in cycles to wait for completion of a normal RESET.
|
protected static boolean |
USE_KICKASSEMBLER |
Constructor and Description |
---|
SidTune() |
Modifier and Type | Method and Description |
---|---|
protected static byte[] |
getContents(File file)
Does not affect status of object, and therefore can be used to load files.
|
SidTuneInfo |
getInfo()
Retrieve sub-song specific information.
|
protected abstract long |
getInitDelay()
Return delay in C64 clocks before song init is done.
|
static long |
getInitDelay(SidTune tune) |
abstract String |
getMD5Digest(MD5Method md5Method)
Calculate MD5 checksum.
|
abstract SidIdInfo.PlayerInfoSection |
getPlayerInfo(String playerName)
Search player ID Info.
|
byte[] |
getPSidHeader() |
static int |
getSIDAddress(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!
|
SidTune.Speed |
getSongSpeed(int selected)
Gets the speed of the selected song.
|
int |
getSongSpeedWord()
Create 32-bit PSID-style speed word.
|
abstract Collection<String> |
identify()
Identify the player ID of a tune
|
static boolean |
isFakeStereoSid(IEmulationSection emulation,
SidTune tune,
int sidNum)
Detect fake-stereo SID (second SID at the same address).
|
static boolean |
isSIDUsed(IEmulationSection emulation,
SidTune tune,
int sidNum)
Is specified SID number in use?
|
static boolean |
isSolelyPrg(SidTune tune) |
static SidTune |
load(File file)
Loads a file as a SidTune (PSID, PRG, P00, T64, MUS, MP3).
|
protected static SidTune |
load(String name,
byte[] fileContents)
Load tune (PSID, PRG, P00, T64).
|
static SidTune |
load(String url,
InputStream stream)
Loads an InputStream as a SidTune (PSID, PRG, P00, T64).
|
abstract Integer |
placeProgramInMemory(byte[] c64buf)
Copy program into C64 memory.
|
void |
prepare() |
abstract void |
save(String destFileName) |
public static final SidTune RESET
protected static final int RESET_INIT_DELAY
protected static boolean USE_KICKASSEMBLER
protected SidTuneInfo info
public static SidTune load(File file) throws IOException, SidTuneError
file
- The file to load.IOException
SidTuneError
public static SidTune load(String url, InputStream stream) throws IOException, SidTuneError
url
- URL of the given streamstream
- The InputStream to load.IOException
- If the stream cannot be read.SidTuneError
protected static SidTune load(String name, byte[] fileContents) throws SidTuneError
name
- name of the file (for file extension check)fileContents
- The tune data to load.IOException
- If the stream cannot be read.SidTuneError
public byte[] getPSidHeader()
protected static final byte[] getContents(File file) throws IOException
file
- The file to load.IOException
- if the file could not be found.public final SidTuneInfo getInfo()
public SidTune.Speed getSongSpeed(int selected)
selected
- The song to get the speed of.public int getSongSpeedWord()
public static boolean isFakeStereoSid(IEmulationSection emulation, SidTune tune, int sidNum)
tune
- current tunesidNum
- current SID numberpublic static boolean isSIDUsed(IEmulationSection emulation, SidTune tune, int sidNum)
public static int getSIDAddress(IEmulationSection emulation, SidTune tune, int sidNum)
public abstract Integer placeProgramInMemory(byte[] c64buf)
c64buf
- SidTuneError
public abstract void save(String destFileName) throws IOException
destFileName
- Destination for the file.IOException
public abstract Collection<String> identify()
public abstract SidIdInfo.PlayerInfoSection getPlayerInfo(String playerName)
playerName
- player to get infos forprotected abstract long getInitDelay()
public static long getInitDelay(SidTune tune)
public static boolean isSolelyPrg(SidTune tune)
public void prepare()
Copyright © 2018 Ken Händel. All rights reserved.