|
|
JSID plays all your favorite sid-tunes in java. The main purpose is to be able to control the player from java. This is implemented using JNI, and since JSID is still in a very early stage of its life, windows is the only currently supported OS. But as time passes by, I will make sure to support at least Unix, Linux and MacOS X. Mail me to be notified when these versions are ready. JSID uses a slightly improved (or modified) version of the SidPlay engine, which you don't need to download.
2002-03-25 Added the ability to install JSID.dll anywhere. This adds the possibility to enjoy the JSID-applet even in a restricted environment (much like the situation at my schools where you're not allowed to install anything). See the applet page for more information.
2002-03-22 JSID is now able to play sidtunes through an applet, which means that it's a perfect substitute for the Sidplug. You might ask why I have duplicated the features of an existing technology. The reason is that I have received a lot of emails from people experiencing problems with sidplug and the latest browsers. Anyway, this is a nonprofit endeavour, so please download the new version of JSID and install it into WINDOWS\system (or WINDOWS\system32) and then try the applet on this page.
2002-02-23 Some problems with downloading the files have been taken care of (thanks to Marc Teufel for pointing this out).
2002-01-15 Removed memory leakage from JSID.dll.
2002-01-07 Updated JSID.class and thereby JSIDplayer. JSIDplayer wasn't functioning as supposed in the first version. Download the updated files JSID.class and JSIDplayer. Added complete example source Player.java
2002-01-06 First version available for download. Be sure to download the java-interface as well. It's pretty hard to use JSID without it. Maybe they should be bundled together or something. To try it out, please download the somewhat bloated JSIDplayer.
JDK 1.3 (download) is required because of the "advanced" sound usage. At a later stage, I will rewrite JSID to be compatible with older versions, but then I will have to mess with sun.audio.* and that's dirty.
Simply unzip the zip-files (JSID.zip contains JSID.dll, jp.zip contains a player) into a convenient directory.
It's really easy since the design is so cleverly done. A good start would be to check out the javadoc. The comments are rather minimalistic, so I will try to summarize the most important stuff below.
To play the second track in the Last Ninja 2 sid-tune, use the following code-snippet (a somewhat more elaborate example can be found in Player.java):
JSID jsid = JSID.createJSID(44100F,16,true);
jsid.setTune("Last_ninja_2.sid");
jsid.setTrack(2);
jsid.start();
Please notice that the first argument to createJSID is a float, just to comply with javax.sound.
Just experiment with the other commands, they are really self-explanatory.
Use JSIDplayer as follows:
java -jar jp.jar
or double-click the jar-file.
Get them at SidFind or somewhere else.
Hey, it's in beta-stage, or perhaps alpha. JSID has been known to quit rather abruptly, but all you have to do is run the program again.
JSID.dll
Java-interface
JSIDplayer
Player.java
Mail me.