Klasse SFXSoundExpander
java.lang.Object
libsidplay.components.cart.Cartridge
libsidplay.components.cart.supported.SFXSoundExpander
- Alle implementierten Schnittstellen:
MusicCartridge,AudioProcessor
- Autor:
- ken
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen libsidplay.components.cart.Cartridge
Cartridge.CRTType -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprivate IntBufferprivate final EventSchedulerprivate intprivate intprivate FMOPL_072.FM_OPLprivate final Bankprivate longprivate Mixerprivate intState of HP-TPDF.private final RandomRandom source for triangular ditheringprivate longprivate intprivate intprivate final int -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungSFXSoundExpander(DataInputStream dis, PLA pla, int sizeKB) sizeKB is misused as type here: 0=OPL1 (YM3526), 1=OPL2 (YM3812) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidclock()Clock cartridge chipsprivate intgetIO2()Acquire the IO2 bank.voidprepare(Mixer mixer, IAudioSection audioSection, IntBuffer audioBufferL, IntBuffer audioBufferR) Prepare a music cartridge for playback.voidprocess(ByteBuffer buffer) We mix cartridge audio samples into the audio buffer here.voidreset()Bring the cart to power-on state.voidstart()Mixer starts mixingtoString()private intTriangularly shaped noise source for audio applications.Von Klasse geerbte Methoden libsidplay.components.cart.Cartridge
changedBA, changedIRQ, changedNMI, create, doFreeze, freeze, getIO1, getRomh, getRoml, getUltimaxMemory, installBankHooks, nullCartridge, read, readCRT, setIRQ, setNMI
-
Felddetails
-
type
private final int type -
context
-
fmOpl
-
lastTime
private long lastTime -
sampleRate
private int sampleRate -
cpuRate
private int cpuRate -
sampleAccumulator
private long sampleAccumulator -
mixer
-
fastForwardSamples
private int fastForwardSamples -
sampleSum
private int sampleSum -
RANDOM
Random source for triangular dithering -
oldRandomValue
private int oldRandomValueState of HP-TPDF. -
cartAudioBuffer
-
io2Bank
-
-
Konstruktordetails
-
SFXSoundExpander
sizeKB is misused as type here: 0=OPL1 (YM3526), 1=OPL2 (YM3812)
-
-
Methodendetails
-
getIO2
Beschreibung aus Klasse kopiert:CartridgeAcquire the IO2 bank. -
reset
public void reset()Beschreibung aus Klasse kopiert:CartridgeBring the cart to power-on state. If overridden, remember to call the superclass method. -
prepare
public void prepare(Mixer mixer, IAudioSection audioSection, IntBuffer audioBufferL, IntBuffer audioBufferR) Prepare a music cartridge for playback.Since we do not create samples of 1MHz for performance reasons, instead we use the target sample rate for audio playback and sound data will be added in the method AudioProcessor.process(). As an advantage, it gets 22 times faster approximately and must no-more being clocked at such a high rate. Note: original audio buffer parameters are being ignored, here!
- Angegeben von:
preparein SchnittstelleMusicCartridge- Parameter:
mixer- mixer for mixing the SID samples into the audio bufferaudioSection- audio comfigurationaudioBufferL- audio buffer for the left channel of the SIDs samples at 1MHz rateaudioBufferR- audio buffer for the right channel of the SIDs samples at 1MHz rate
-
process
We mix cartridge audio samples into the audio buffer here.- Angegeben von:
processin SchnittstelleAudioProcessor- Parameter:
buffer- stereo audio buffer of samples at the target frequency rate.
-
start
public void start()Beschreibung aus Schnittstelle kopiert:MusicCartridgeMixer starts mixing- Angegeben von:
startin SchnittstelleMusicCartridge
-
clock
public void clock()Beschreibung aus Klasse kopiert:CartridgeClock cartridge chips -
triangularDithering
private int triangularDithering()Triangularly shaped noise source for audio applications. Output of this PRNG is between ]-1, 1[.- Gibt zurück:
- triangular noise sample
-
clocksSinceLastAccess
private int clocksSinceLastAccess() -
toString
-