Package builder.resid
Klasse SIDMixer.MixerEvent
java.lang.Object
libsidplay.common.Event
builder.resid.SIDMixer.MixerEvent
- Umschließende Klasse:
SIDMixer
The mixer mixes the generated sound samples into the drivers audio buffer.
- Autor:
- ken
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen libsidplay.common.Event
Event.ConsumerThatThrows<T>, Event.Phase -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprivate intFast forward factor:
fastForwardShift=1<<(VOLUME_SCALER+fastForwardFactor)private intFast forward factor:
fastForwardShift=1<<(VOLUME_SCALER+fastForwardFactor)private intState of HP-TPDF.private final RandomRandom source for triangular ditheringVon Klasse geerbte Felder libsidplay.common.Event
name, next, triggerTime -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidevent()The mixer mixes the generated sound samples into the drivers audio buffer.private intTriangularly shaped noise source for audio applications.
-
Felddetails
-
RANDOM
Random source for triangular dithering -
oldRandomValue
private int oldRandomValueState of HP-TPDF. -
fastForwardShift
private int fastForwardShiftFast forward factor:
fastForwardShift=1<<(VOLUME_SCALER+fastForwardFactor) -
fastForwardBitMask
private int fastForwardBitMaskFast forward factor:
fastForwardShift=1<<(VOLUME_SCALER+fastForwardFactor)
-
-
Konstruktordetails
-
MixerEvent
-
-
Methodendetails
-
event
The mixer mixes the generated sound samples into the drivers audio buffer.- Clock SIDs/Carts to fill audio buffer.
- Accumulate samples to implement fast forwarding.
- Resample the SID output, because the sample frequency is different to the clock frequency.
- Add dithering to reduce quantization noise, when moving to a format with less precision.
- Cut-off overflow samples.
- do some audio post-processing
Audio buffer is cleared afterwards to get refilled during next event.- Angegeben von:
eventin KlasseEvent- Löst aus:
InterruptedException
-
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
-