Package builder.jhardsid
Klasse JHardSIDBuilder
java.lang.Object
builder.jhardsid.JHardSIDBuilder
- Alle implementierten Schnittstellen:
HardwareSIDBuilder,Mixer,SIDBuilder
Support of HARDSID USB devices like HardSID Uno, HardSID UPlay and HardSID4U.
- Autor:
- Ken Händel
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprivate static intNumber of SIDs of the first HardSID device.private IConfigConfigurationprivate EventSchedulerSystem event context.private CPUClockCPU clock.private int[]private static intNumber of HardSID devices.private byteDevice number.private static String[]Device names of HardSID devices.private intprivate final com.hardsid.usb.driver.HardSIDUSBprivate longprivate static final shortprivate List<JHardSIDEmu> Already used HardSIDs.Von Schnittstelle geerbte Felder libsidplay.common.Mixer
MAX_FAST_FORWARD -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibung(Package privat) intprivate JHardSIDEmucreateSID(byte deviceId, int chipNum, int sidNum, SidTune tune, ChipModel chipModel, ChipModel defaultChipModel) voiddestroy()(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 SIDstatic String[]intbooleanCreate a new SID chip emulation.voidUse normal speed factor.voidpause()Pause player.static voidprivate static voidprivate 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) voidsetVolume(int sidNum, float volume) Volume of the SID chipvoidstart()Timer start reached, audio output should be produced.voidDestroy SID chip emulation.
-
Felddetails
-
REGULAR_DELAY
private static final short REGULAR_DELAY- Siehe auch:
-
context
System event context. -
config
Configuration -
cpuClock
CPU clock. -
hardSID
private final com.hardsid.usb.driver.HardSIDUSB hardSID -
deviceCount
private static int deviceCountNumber of HardSID devices. -
deviceNames
Device names of HardSID devices. -
chipCount
private static int chipCountNumber of SIDs of the first HardSID device. -
deviceID
private byte deviceIDDevice number. If more devices are connected, we use just the first one. -
sids
Already used HardSIDs. -
lastSIDWriteTime
private long lastSIDWriteTime -
fastForwardFactor
private int fastForwardFactor -
delayInCycles
private int[] delayInCycles
-
-
Konstruktordetails
-
JHardSIDBuilder
-
-
Methodendetails
-
destroy
public void destroy()- Angegeben von:
destroyin SchnittstelleSIDBuilder
-
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
-
printInstallationHint
public static void printInstallationHint() -
printLinuxInstallationHint
private static void printLinuxInstallationHint() -
printMacInstallationHint
private static void printMacInstallationHint() -
printWindowsInstallationHint
private static void printWindowsInstallationHint() -
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
-
getDeviceNames
-
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 -
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 JHardSIDEmu createSID(byte deviceId, int chipNum, int sidNum, SidTune tune, ChipModel chipModel, ChipModel defaultChipModel) -
clocksSinceLastAccess
int clocksSinceLastAccess() -
eventuallyDelay
long eventuallyDelay()
-