CPCWiki forum

General Category => Applications (CPC and CPC-related) => Topic started by: Devilmarkus on 20:01, 01 October 10

Title: TEST: Java YM player
Post by: Devilmarkus on 20:01, 01 October 10
Hello folks,
please test my new Applet: A Java YM player.
http://cpc-live.com/ymplayer.php

It "should" playback:
- Sacred Armour of Antiriad
- Death Wish 3
- Cybernoid 1

You should be able to see the output data also in a oscilloscope like display.

Please report, if the applet does not produce sound.
(For Linux users it maybe run a bit slowly, I hope I can fix that)
Title: Re: TEST: Java YM player
Post by: mahlemiut on 08:07, 02 October 10
No sound output for me under either Windows or Linux.  Oscilloscope flatlines too. :)
Title: Re: TEST: Java YM player
Post by: AMSDOS on 10:05, 02 October 10
Seems to take forever for anything to happen, I've waited several minutes and haven't recieved (uploaded this image in the meantime!).

(http://img705.imageshack.us/img705/9997/ymplayer.png)
Title: Re: TEST: Java YM player
Post by: Devilmarkus on 11:40, 02 October 10
@ CPM user: Do you have latest JAVA installed? www.java.com (http://www.java.com)

Please retry:
http://cpc-live.com/ymplayer.php (http://cpc-live.com/ymplayer.php)

Also try to open the Java-console (if available) and copy the output here please.

(Should work now for mahlemiut, too)

The applet should look like this:
(http://cpc-live.com/ymapplet.png)
Title: Re: TEST: Java YM player
Post by: remax on 12:55, 02 October 10
Work great here, except perhaps oscilloscope is a bit slow.
Title: Re: TEST: Java YM player
Post by: robcfg on 13:06, 02 October 10
Works great for me under WinXP.


Here's the console log you requested:



Quote
Java Plug-in 1.6.0_21
Usar versión JRE 1.6.0_21-b07 Java HotSpot(TM) Client VM
Directorio local del usuario = C:\Documents and Settings\Rober
----------------------------------------------------
c:   borrar ventana de consola
f:   finalizar objetos en la cola de finalización
g:   liberación de recursos
h:   presentar este mensaje de ayuda
l:   volcar lista del cargador de clases
m:   imprimir sintaxis de memoria
o:   activar registro
q:   ocultar consola
r:   recargar configuración de norma
s:   volcar propiedades del sistema y de despliegue
t:   volcar lista de subprocesos
v:   volcar pila de subprocesos
x:   borrar antememoria del cargador de clases
0-5: establecer nivel de rastreo en <n>
----------------------------------------------------




antiriad.zip
deathwish3.zip
cybernoid1.zip
Using 16 bit sound
Initialized
AY chip active!
sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@c68c3
0 bytes
YM_RecCount 00000000
YM_length 00000000
can't read file antiriad.ym
Sorry, no playback-data in buffer
sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@1d6776d
Opening compressed file...
142233 bytes
opening YM5! file...
YM_RecCount 00022B56
YM_length 000022B5
Registers: 16
sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@56860b
Opening compressed file...
115073 bytes
opening YM5! file...
Found an interleaved file of 16 registers.
YM_RecCount 0001C135
YM_length 00001C13
Registers: 16

Title: Re: TEST: Java YM player
Post by: AMSDOS on 13:37, 02 October 10
Devilmarkus wrote:

@ CPM user: Do you have latest JAVA installed? www.java.com (http://www.java.com/)

Please retry:
http://cpc-live.com/ymplayer.php (http://cpc-live.com/ymplayer.php)

Also try to open the Java-console (if available) and copy the output here please.

Yep seems to be going now. Couldn't open the Java-console, though I got a dump of it.

(http://img214.imageshack.us/img214/9997/ymplayer.png)
Title: Re: TEST: Java YM player
Post by: Devilmarkus on 18:43, 02 October 10
Well, Java goes strange ways...
The applet should work here:
http://cpc-live.com/ymplayer.php (http://cpc-live.com/ymplayer.php)

The player itself should also work as standalone:
http://cpc-live.com/YMPlayer.zip (http://cpc-live.com/YMPlayer.zip)

You should be able to open it by double click on "YMPlayer.jar"
If this doesnt work, open the "YMPlayer.bat"...

Supported:
YM5!, YM6!, YM3! and YM2!
(All should work, I hope)

Standalone app. can also open LHA5 compressed YM files.

Amstrad CPC and also Atari ST YM files should playback fine.

Please report problems, bugs etc...
(I tried the applet on my GF's laptop and it took looooong time to load it, because old Java version, but it worked there, too)

Use the menu or STRG + O to open a file.

(http://cpc-live.com/ymplayer.png)
Title: Re: TEST: Java YM player
Post by: Devilmarkus on 21:15, 02 October 10
2 Applets are possible now:
A large applet:
http://cpc-live.com/band1.html (http://cpc-live.com/band1.html)

and a small applet:
http://cpc-live.com/band.html (http://cpc-live.com/band.html)

small applet with 3 YM-songs:
http://cpc-live.com/small.html
Title: Re: TEST: Java YM player
Post by: mahlemiut on 23:24, 02 October 10
Current results:
Under Windows XP Pro SP3, Oracle Java 6 SE (1.6.0_21):
Applets run fine, oscilloscope is rather slow. (But then, this PC is rather slow, too :))
Standalone app starts up, but won't play an YM file.  No errors are displayed.

Under Ubuntu 10.04 (64-bit), OpenJDK 6 (IcedTea6/1.6.0_18):
Applets don't start up at all anymore.
Standalone app runs fine, except that the oscilloscope flickers badly.
Title: Re: TEST: Java YM player
Post by: mahlemiut on 06:36, 04 October 10
Ok, got the Windows standalone app working, Comodo was getting in the way of it functioning properly.  Explicitly told it that it's a trusted app (doesn't work via the alerts for some odd reason), then started it up, and it works great now.

Now perhaps the menu text colour could be changed... it's really hard to read.
Title: Re: TEST: Java YM player
Post by: Devilmarkus on 08:59, 04 October 10
The menu was indeed very unreadable.
Also I hope I improved the display.

Try this .jar as standalone:
Title: Re: TEST: Java YM player
Post by: mahlemiut on 11:52, 04 October 10
Yay, no more flicker  ;D

Works nicely, and has a nice readable menu.
Title: Re: TEST: Java YM player
Post by: Devilmarkus on 14:23, 04 October 10
Well, here's the first release:
(http://cpc-live.com/ymplayer1.0.png)

You can download it here:
http://cpc-live.com/data/list.php?dir=-tool (YMPlayer1.0.zip)

If you are interested in Applet usage for website, feel free to ask me how ;)
Title: Re: TEST: Java YM player
Post by: Devilmarkus on 08:55, 05 October 10
Here is the applet-html usage:
<APPLET ARCHIVE="YMPlayer.jar"
        CODEBASE="http://yourdomain.com/pathtoymplayer.jar"
        CODE="Player.core.webapplet.class"
        WIDTH=180 HEIGHT=44>
<param name="FILE" value="blueangel.txt">
<param name="SMALL" value="true">
<param name="VOLUME" value="50">
<param name="BACKGROUND" value="160701">
</APPLET>


The size is different to large usage:
WIDTH=425 HEIGHT=150

The parameter FILE is an obligatory.
It can contain:
filename.ym (when the YM makes trouble, because it's too large, zip it! There's somewhere a bug in loading the files. Sorry guys)
filename.zip

It can also contain:
filelist.txt

The filelist.txt contains all your YM files you want to play:
My example:
antiriad.zip
deathwish3.zip
cybernoid1.zip


The parameter VOLUME can have a value between 0 and 100 (0-100% output volume)

The parameter SMALL lets the player appear as small applet only.

The parameter BACKGROUND defines the player's background colour and is the RGB hex-value. (e.g. 000000 for black or FFFFFF for white)
You should keep it dark ;-)

Any questions? Feel free to ask
Powered by SMFPacks Menu Editor Mod