Package builder.jusbsid
Klasse JUSBSIDBuilder
java.lang.Object
builder.jusbsid.JUSBSIDBuilder
- Alle implementierten Schnittstellen:
HardwareSIDBuilder,Mixer,SIDBuilder
Support of USBSID 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 USBSID devices.private static String[]Device names of USBSID devices.private intprotected intprivate longprivate static final shortAlready used USBSID SIDs.private static usbsid.USBSIDNative library wrapper.Von Schnittstelle geerbte Felder libsidplay.common.Mixer
MAX_FAST_FORWARD -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibung(Package privat) intprivate USBSIDEmucreateSID(byte deviceId, int sidNum, SidTune tune, ChipModel chipModel, ChipModel defaultChipModel, boolean stereo) (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[]intprivate voidinit()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) voidsetVolume(int sidNum, float volume) Volume of the SID chipvoidstart()Timer start reached, audio output should be produced.voidDestroy 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. -
usbsid
private static usbsid.USBSID usbsidNative library wrapper. -
deviceCount
private static int deviceCountNumber of USBSID devices. -
deviceNames
Device names of USBSID devices. -
sids
Already used USBSID SIDs. -
lastSIDWriteTime
private long lastSIDWriteTime -
fastForwardFactor
private int fastForwardFactor -
delayInCycles
private int[] delayInCycles -
lastSidNum
protected int lastSidNum
-
-
Konstruktordetails
-
JUSBSIDBuilder
-
-
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:
oldSIDEmu- 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
-
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
-
clocksSinceLastAccess
int clocksSinceLastAccess() -
eventuallyDelay
long eventuallyDelay()
-