Klasse ExportedUtilitiesApi

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

public class ExportedUtilitiesApi extends Object implements IExportedUtilities, ILogger
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

    • LOG_IMPL

      private static final Logger LOG_IMPL
    • LOG

      private final ILogger LOG
    • mainArgs

      private final MainArgs mainArgs
  • 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
    • finest

      public void finest(String message)
      Angegeben von:
      finest in Schnittstelle ILogger
    • fine

      public void fine(String message)
      Angegeben von:
      fine in Schnittstelle ILogger
    • info

      public void info(String message)
      Angegeben von:
      info in Schnittstelle ILogger
    • severe

      public void severe(String message)
      Angegeben von:
      severe in Schnittstelle ILogger