Package client.teavm

Klasse JSIDPlay2TeaVMc

java.lang.Object
client.teavm.JSIDPlay2TeaVMc

public final class JSIDPlay2TeaVMc extends Object
The main entry point for the TeaVM-based implementation of JSIDPlay2, designed to generate C code.

This class provides a command-line interface for SID playback and WAV recording. When compiled to C using TeaVM, it can be run as a standalone executable.

Building

To build the C version, use the following commands:

 mvn -Djavafx.platform=linux clean install
 cd target/classes/server/restful/webapp/teavm/c
 cmake .
 make
 

Usage

Run the generated executable with the following arguments:

 ./build/dist/jsidplay2 <sidFilename> <wavFilename> <recordingTimeInSeconds>
 

Example:

 ./build/dist/jsidplay2 ../sid/Turrican_2-The_Final_Fight.sid ./out.wav 180
 play ./out.wav
 
  • Felddetails

    • DEBUG_ARGS

      private static final String[] DEBUG_ARGS
  • Konstruktordetails

    • JSIDPlay2TeaVMc

      public JSIDPlay2TeaVMc()
  • Methodendetails