Klasse AudioDriverTeaVM

java.lang.Object
client.teavm.common.audio.AudioDriverTeaVM
Alle implementierten Schnittstellen:
Consumer<VIC>, SIDListener, AudioDriver, VideoDriver

public final class AudioDriverTeaVM extends Object implements AudioDriver, VideoDriver, SIDListener
Audio driver to be used in the JavaScript and web assembly version builds. Browser needs float array for each channel with sound samples with a value range of -1..1. And pixel data is required as a byte array containing color data four bytes each pixel RGBA. Additionally the possibility to sniff for SID writes helps to make USB hardware working in the browser and for debug purposes. Note: A lookup table is used for sample data conversion (short to float) for performance reasons
  • Felddetails

    • REGULAR_DELAY

      private static final short REGULAR_DELAY
      Siehe auch:
    • importedApi

      private final IImportedApi importedApi
    • lookupTable

      private final float[] lookupTable
    • mixer

      private final Mixer mixer
    • engine

      private final Engine engine
    • nthFrame

      private final int nthFrame
    • pixelsArray

      private final byte[] pixelsArray
    • context

      private EventScheduler context
    • sampleBuffer

      private ByteBuffer sampleBuffer
    • shortBuffer

      private ShortBuffer shortBuffer
    • resultL

      private FloatBuffer resultL
    • resultR

      private FloatBuffer resultR
    • n

      private int n
    • lastSIDWriteTime

      private long lastSIDWriteTime
    • fastForwardVICFrames

      private int fastForwardVICFrames
  • Konstruktordetails

  • Methodendetails