Package builder.jsidblaster
Klasse JSIDBlasterBuilder
java.lang.Object
builder.jsidblaster.JSIDBlasterBuilder
- Alle implementierten Schnittstellen:
HardwareSIDBuilder,Mixer,SIDBuilder
Support of SIDBlaster mini USB devices.
- Autor:
- Ken Händel
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprivate IConfigConfigurationprivate EventSchedulerSystem event context.private CPUClockCPU clock.private int[]private static intNumber of SIDBlaster devices.private intprivate static sidblaster.hardsid.HardSIDNative library wrapper.private longprivate static final shortprivate static String[]Serial numbers of SIDBlaster devices.private List<SIDBlasterEmu> Already used SIDBlaster SIDs.Von Schnittstelle geerbte Felder libsidplay.common.Mixer
MAX_FAST_FORWARD -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungJSIDBlasterBuilder(EventScheduler context, IConfig config, CPUClock cpuClock) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibung(Package privat) intprivate SIDBlasterEmu(Package privat) longvoidfadeIn(double fadeIn) Fade-in start time reached, audio volume should be increased to the max.voidfadeOut(double fadeOut) Fade-out start time reached, audio volume should be lowered to zero.voidDoubles speed factor.intgetDelay(int sidNum) getDeviceChipModel(int sidNum) Get device chip model of specified SIDintGet maximum number of supported SID devices.getDeviceId(int sidNum) Get device ID of specified SIDgetDeviceName(int sidNum) Get device name of specified SIDintprivate AbstractMap.SimpleEntry<Integer, ChipModel> getModelDependantDeviceId(ChipModel chipModel, int sidNum, String sidBlasterSerialNumber) Get SIDBlaster device index based on the desired chip model.static String[]static SIDTypegetSidType(int deviceId) private voidinit()booleanprivate booleanisSerialNumAlreadyUsed(String serialNo) booleanCreate a new SID chip emulation.voidUse normal speed factor.voidpause()Pause player.static voidprivate static voidvoidsetBalance(int sidNum, float balance) Panning feature: spreading of the SID chip sound signal to the two stereo channelsvoidsetDelay(int sidNum, int delay) Delay feature: Delaying SID chip sound samples by time in millisecondsvoidsetDeviceName(int sidNum, String serialNo) voidsetLatencyTimer(short ms) static intstatic intsetSidType(int deviceId, SIDType sidType) voidsetVolume(int sidNum, float volume) Volume of the SID chipvoidstart()Timer start reached, audio output should be produced.static voidvoidDestroy SID chip emulation.Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden libsidplay.common.SIDBuilder
destroy
-
Felddetails
-
REGULAR_DELAY
private static final short REGULAR_DELAY- Siehe auch:
-
context
System event context. -
config
Configuration -
cpuClock
CPU clock. -
hardSID
private static sidblaster.hardsid.HardSID hardSIDNative library wrapper. -
deviceCount
private static int deviceCountNumber of SIDBlaster devices. -
serialNumbers
Serial numbers of SIDBlaster devices. -
sids
Already used SIDBlaster SIDs. -
lastSIDWriteTime
private long lastSIDWriteTime -
fastForwardFactor
private int fastForwardFactor -
delayInCycles
private int[] delayInCycles
-
-
Konstruktordetails
-
JSIDBlasterBuilder
-
-
Methodendetails
-
init
private void init() -
printInstallationHint
public static void printInstallationHint() -
printLinuxInstallationHint
private static void printLinuxInstallationHint() -
lock
Beschreibung aus Schnittstelle kopiert:SIDBuilderCreate a new SID chip emulation.- Angegeben von:
lockin SchnittstelleSIDBuilder- Parameter:
oldHardSID- old SID chip in usesidNum- SID chip numbertune- current tune- Gibt zurück:
- emulated SID chip
-
unlock
Beschreibung aus Schnittstelle kopiert:SIDBuilderDestroy SID chip emulation.- Angegeben von:
unlockin SchnittstelleSIDBuilder- Parameter:
sidEmu- SID chip to destroy
-
getDeviceCount
public int getDeviceCount()Beschreibung aus Schnittstelle kopiert:HardwareSIDBuilderGet maximum number of supported SID devices.- Angegeben von:
getDeviceCountin SchnittstelleHardwareSIDBuilder- Gibt zurück:
- maximum number of supported SID devices
-
getSerialNumbers
-
isSidBlasterRead
public boolean isSidBlasterRead() -
getSidType
-
setSidType
-
setSerial
-
uninitialize
public static void uninitialize() -
getDeviceId
Beschreibung aus Schnittstelle kopiert:HardwareSIDBuilderGet device ID of specified SID- Angegeben von:
getDeviceIdin SchnittstelleHardwareSIDBuilder- Parameter:
sidNum- SID number- Gibt zurück:
- device ID of specified SID (null means unassigned)
-
getDeviceName
Beschreibung aus Schnittstelle kopiert:HardwareSIDBuilderGet device name of specified SID- Angegeben von:
getDeviceNamein SchnittstelleHardwareSIDBuilder- Parameter:
sidNum- SID number- Gibt zurück:
- device name of specified SID (null means unassigned)
-
setDeviceName
-
getDeviceChipModel
Beschreibung aus Schnittstelle kopiert:HardwareSIDBuilderGet device chip model of specified SID- Angegeben von:
getDeviceChipModelin SchnittstelleHardwareSIDBuilder- Parameter:
sidNum- SID number- Gibt zurück:
- device chip model of specified SID (null means unassigned)
-
start
public void start()Beschreibung aus Schnittstelle kopiert:MixerTimer start reached, audio output should be produced. -
fadeIn
public void fadeIn(double fadeIn) Beschreibung aus Schnittstelle kopiert:MixerFade-in start time reached, audio volume should be increased to the max. -
fadeOut
public void fadeOut(double fadeOut) Beschreibung aus Schnittstelle kopiert:MixerFade-out start time reached, audio volume should be lowered to zero. -
setVolume
public void setVolume(int sidNum, float volume) Beschreibung aus Schnittstelle kopiert:MixerVolume of the SID chip -
setBalance
public void setBalance(int sidNum, float balance) Beschreibung aus Schnittstelle kopiert:MixerPanning feature: spreading of the SID chip sound signal to the two stereo channels- Angegeben von:
setBalancein SchnittstelleMixer- Parameter:
sidNum- SID chip numberbalance- balance 0(left speaker)..0.5(centered)..1(right speaker)
-
getDelay
public int getDelay(int sidNum) -
setDelay
public void setDelay(int sidNum, int delay) Beschreibung aus Schnittstelle kopiert:MixerDelay feature: Delaying SID chip sound samples by time in milliseconds -
setLatencyTimer
public void setLatencyTimer(short ms) -
fastForward
public void fastForward()Beschreibung aus Schnittstelle kopiert:MixerDoubles speed factor.- Angegeben von:
fastForwardin SchnittstelleMixer
-
normalSpeed
public void normalSpeed()Beschreibung aus Schnittstelle kopiert:MixerUse normal speed factor.- Angegeben von:
normalSpeedin SchnittstelleMixer
-
isFastForward
public boolean isFastForward()- Angegeben von:
isFastForwardin SchnittstelleMixer- Gibt zurück:
- speed factor is used?
-
getFastForwardBitMask
public int getFastForwardBitMask()- Angegeben von:
getFastForwardBitMaskin SchnittstelleMixer- Gibt zurück:
- bit mask of current speed factor (1 << 0 = 1x, 1 << 1 = 2x, ... , 1 << 5 = 32x) - 1
-
pause
public void pause()Beschreibung aus Schnittstelle kopiert:MixerPause player. -
createSID
private SIDBlasterEmu createSID(byte deviceId, int sidNum, SidTune tune, ChipModel chipModel, ChipModel defaultChipModel) -
getModelDependantDeviceId
private AbstractMap.SimpleEntry<Integer,ChipModel> getModelDependantDeviceId(ChipModel chipModel, int sidNum, String sidBlasterSerialNumber) Get SIDBlaster device index based on the desired chip model.- Parameter:
chipModel- desired chip modelsidNum- current SID numbersidBlasterSerialNumber- hard-wired serial number of device to test with (null - choose best fitting device)- Gibt zurück:
- SID index of the desired SIDBlaster device
-
isSerialNumAlreadyUsed
-
clocksSinceLastAccess
int clocksSinceLastAccess() -
eventuallyDelay
long eventuallyDelay()
-