Package builder.resid

Klasse SIDMixer.MixerEvent

java.lang.Object
libsidplay.common.Event
builder.resid.SIDMixer.MixerEvent
Umschließende Klasse:
SIDMixer

private final class SIDMixer.MixerEvent extends Event
The mixer mixes the generated sound samples into the drivers audio buffer.
Autor:
ken
  • Felddetails

    • RANDOM

      private final Random RANDOM
      Random source for triangular dithering
    • oldRandomValue

      private int oldRandomValue
      State of HP-TPDF.
    • fastForwardShift

      private int fastForwardShift
      Fast forward factor:
      fastForwardShift=1<<(VOLUME_SCALER+fastForwardFactor)
    • fastForwardBitMask

      private int fastForwardBitMask
      Fast forward factor:
      fastForwardShift=1<<(VOLUME_SCALER+fastForwardFactor)
  • Konstruktordetails

    • MixerEvent

      private MixerEvent(String name)
  • Methodendetails

    • event

      public void event() throws InterruptedException
      The mixer mixes the generated sound samples into the drivers audio buffer.
      1. Clock SIDs/Carts to fill audio buffer.
      2. Accumulate samples to implement fast forwarding.
      3. Resample the SID output, because the sample frequency is different to the clock frequency.
      4. Add dithering to reduce quantization noise, when moving to a format with less precision.
      5. Cut-off overflow samples.
      6. do some audio post-processing
      Note:
      Audio buffer is cleared afterwards to get refilled during next event.
      Angegeben von:
      event in Klasse Event
      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