Klasse ExportedUtilitiesApi

java.lang.Object
client.teavm.common.ExportedUtilitiesApi
Alle implementierten Schnittstellen:
IExportedUtilities

public class ExportedUtilitiesApi extends Object implements IExportedUtilities
Provides a set of utility functions that can be accessed from JavaScript or WebAssembly builds generated by TeaVM.

This class exposes reusable methods that are independent of the emulator core, allowing web clients or external tools to perform SID-related calculations without instantiating the full emulator.

  • Felddetails

  • Konstruktordetails

    • ExportedUtilitiesApi

      public ExportedUtilitiesApi(String[] args)
  • Methodendetails

    • filterCurve

      public double[] filterCurve(Emulation emulation, IFilterSection filter)
      Generate a SID chip–dependent filter curve.

      This function estimates the frequency response for each possible filter cutoff (FC) value, depending on the selected emulation model. It calls into the corresponding FilterModelConfig of either ReSID or ReSID-FP to compute the analog cutoff frequency in Hz.

      The result is typically used for visualization or DSP processing in JavaScript/WebAssembly clients.

      Angegeben von:
      filterCurve in Schnittstelle IExportedUtilities
      Parameter:
      emulation - the SID emulation type (e.g. Emulation.RESIDFP)
      filter - the filter configuration section defining model parameters
      Gibt zurück:
      an array of FC_MAX double values representing the estimated cutoff frequency curve