Author Topic: TEST: Java YM player  (Read 5724 times)

0 Members and 1 Guest are viewing this topic.

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1015
  • Likes Given: 926
TEST: Java YM player
« on: 22: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)
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

Offline mahlemiut

  • CPC6128
  • ****
  • Posts: 290
  • Country: nz
  • Liked: 146
  • Likes Given: 53
Re: TEST: Java YM player
« Reply #1 on: 10:07, 02 October 10 »
No sound output for me under either Windows or Linux.  Oscilloscope flatlines too. :)
- Barry Rodewald
Amstrad CPC, Sharp X68000, Neo Geo Pocket, and Neo Geo AES system leader at HARP
http://www.homeactionreplay.org/

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.873
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 1080
  • Likes Given: 1824
Re: TEST: Java YM player
« Reply #2 on: 12: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!).
 
* 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

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1015
  • Likes Given: 926
Re: TEST: Java YM player
« Reply #3 on: 13:40, 02 October 10 »
@ 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:
« Last Edit: 13:41, 02 October 10 by Devilmarkus »
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

Offline remax

  • 6128 Plus
  • ******
  • Posts: 1.121
  • Country: fr
  • Liked: 408
  • Likes Given: 451
Re: TEST: Java YM player
« Reply #4 on: 14:55, 02 October 10 »
Work great here, except perhaps oscilloscope is a bit slow.

Offline robcfg

  • Supporter
  • 6128 Plus
  • *
  • Posts: 2.317
  • Country: se
  • 8-Bit Technomancer
    • index.php?action=treasury
  • Liked: 1031
  • Likes Given: 2473
Re: TEST: Java YM player
« Reply #5 on: 15: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


Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.873
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 1080
  • Likes Given: 1824
Re: TEST: Java YM player
« Reply #6 on: 15:37, 02 October 10 »
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

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1015
  • Likes Given: 926
Re: TEST: Java YM player
« Reply #7 on: 20:43, 02 October 10 »
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

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1015
  • Likes Given: 926
Re: TEST: Java YM player
« Reply #8 on: 23:15, 02 October 10 »
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
« Last Edit: 23:23, 02 October 10 by Devilmarkus »
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

Offline mahlemiut

  • CPC6128
  • ****
  • Posts: 290
  • Country: nz
  • Liked: 146
  • Likes Given: 53
Re: TEST: Java YM player
« Reply #9 on: 01:24, 03 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.
- Barry Rodewald
Amstrad CPC, Sharp X68000, Neo Geo Pocket, and Neo Geo AES system leader at HARP
http://www.homeactionreplay.org/

Offline mahlemiut

  • CPC6128
  • ****
  • Posts: 290
  • Country: nz
  • Liked: 146
  • Likes Given: 53
Re: TEST: Java YM player
« Reply #10 on: 08: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.
- Barry Rodewald
Amstrad CPC, Sharp X68000, Neo Geo Pocket, and Neo Geo AES system leader at HARP
http://www.homeactionreplay.org/

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1015
  • Likes Given: 926
Re: TEST: Java YM player
« Reply #11 on: 10:59, 04 October 10 »
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

Offline mahlemiut

  • CPC6128
  • ****
  • Posts: 290
  • Country: nz
  • Liked: 146
  • Likes Given: 53
Re: TEST: Java YM player
« Reply #12 on: 13:52, 04 October 10 »
Yay, no more flicker  ;D

Works nicely, and has a nice readable menu.
- Barry Rodewald
Amstrad CPC, Sharp X68000, Neo Geo Pocket, and Neo Geo AES system leader at HARP
http://www.homeactionreplay.org/

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1015
  • Likes Given: 926
Re: TEST: Java YM player
« Reply #13 on: 16:23, 04 October 10 »
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

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1015
  • Likes Given: 926
Re: TEST: Java YM player
« Reply #14 on: 10:55, 05 October 10 »
Here is the applet-html usage:
Code: [Select]
<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:
Code: [Select]
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