News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_Devilmarkus

TEST: Java YM player

Started by Devilmarkus, 20:01, 01 October 10

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Devilmarkus

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)
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

mahlemiut

No sound output for me under either Windows or Linux.  Oscilloscope flatlines too. :)
- Barry Rodewald

AMSDOS

Seems to take forever for anything to happen, I've waited several minutes and haven't recieved (uploaded this image in the meantime!).

* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Devilmarkus

#3
@ CPM user: Do you have latest JAVA installed? www.java.com

Please retry:
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:
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

remax

Work great here, except perhaps oscilloscope is a bit slow.
Brain Radioactivity

robcfg

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


AMSDOS

Devilmarkus wrote:

@ CPM user: Do you have latest JAVA installed? www.java.com

Please retry:
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.

* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Devilmarkus

Well, Java goes strange ways...
The applet should work here:
http://cpc-live.com/ymplayer.php

The player itself should also work as standalone:
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.

When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Devilmarkus

#8
2 Applets are possible now:
A large applet:
http://cpc-live.com/band1.html

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

small applet with 3 YM-songs:
http://cpc-live.com/small.html
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

mahlemiut

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.
- Barry Rodewald

mahlemiut

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.
- Barry Rodewald

Devilmarkus

The menu was indeed very unreadable.
Also I hope I improved the display.

Try this .jar as standalone:
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

mahlemiut

Yay, no more flicker  ;D

Works nicely, and has a nice readable menu.
- Barry Rodewald

Devilmarkus

Well, here's the first release:


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 ;)
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Devilmarkus

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
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Powered by SMFPacks Menu Editor Mod