Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Newbie & Debugging Questions / Re: javax.sound: Applet Clip latency on: 2009-05-08 18:03:45
EDIT: ouch... my ears ! you must hande when Applet is destroyed to stop all sound... leaving when there is the Red alien make the sound continue to play even when  game web page closed and that's really annoying

Ups, of course  Undecided My wife discovered the problem a few minutes ago when I proudly presented the new page look to her.  Grin Ok, fixed that.

I noticed another interesting thing: The sound in Ubuntu plays *ways* better if I use Applet.newAudioClip() instead of the JApplet-Method getAudioClip(). The latency problems gets better, the sounds are all preloaded before first play, the sound stutters less.

Thanks for the link to "Applet Boot", will add this tomorrow!
2  Game Development / Newbie & Debugging Questions / Re: javax.sound: Applet Clip latency on: 2009-04-25 15:05:05
Hi there,

thanks to h3ckboy,SimonH,DzzD,Hansdampf for comments and help!
Went back to simple usage of AudioClip as recommended. Having implemented the ufo and speeded up gameplay meanwhile.

Although simply copying these classics isn't a creative masterpiece, it simply helps getting me started with simple concepts.
Already have some ideas for own games  Wink
3  Game Development / Newbie & Debugging Questions / Re: javax.sound: Applet Clip latency on: 2009-04-20 17:46:29
Thanks for all the advocacy, looks like I have found the right forum after all.  Grin

I did not mean it like that! Just imagine that I hadn't removed my extremely sarcastic post Wink.

Ok, lets put some cooldown and peace here. You simply caught me on the wrong foot as I was already angry having so little time for this hobby.
Was like throwing oil on the fire. Sorry if I sounded like a hothead here...  Wink

Meantime, I managed to get the game online:
Still have to implement loading screen and the ufo. Code is ugly, nearly no OOP right now, simply 'hack & forget' spaghetti.
And there is a tiny bug when aliens change direction sometimes. But hey, first running game, helpful comments welcome  Wink
Has anybody bad experiences by violating copyrights of real classic arcade games (being some decades old)?

If Bloodridge plays OK on the problem machine then I'm sure Egon wouldn't mind if I gave you the code.

Thanks very much, same issue with it.
But even Flash plays sounds laggy. I really think now that it must be an OS problem...

4  Game Development / Newbie & Debugging Questions / Re: javax.sound: Applet Clip latency on: 2009-04-19 09:13:31
So far, thanks for all helpful answers.

you really mean it when you said it would take some itme.

Assuming that I've spent 24/7 for two months on this topic, sure. But it had other reasons which needed my fully attention. I've been aware of that while posting the first message, that's why I said that. I know what you want to say: "If you are too dumb or do not have enough time, simply don't try to get started in java game programming, you won't arrive anyhwere, TGT. And don't bother us here any longer."

Message delivered and agreed. Ok, Mr. "JGO Ninja", your wish is fulfilled.
5  Game Development / Newbie & Debugging Questions / Re: javax.sound: Applet Clip latency on: 2009-04-17 13:09:15
Ok, I've got behind it (even all that ThreadLocal usage I have to do if I want to play sounds simultaneously).
Unfortunately, all mixers my Ubuntu 8.10 with onboard sound gives me, are these:

mixer #1:Intel [plughw:0,1], version 1.0.17, maxLines:1)
mixer #2:Java Sound Audio Engine, version 1.0, maxLines:32)
mixer #3:Port Intel [hw:0], version 1.0.17, maxLines:1)

So far for playing sounds in Java without use of external libraries... Sad
Any hints? JOAL?

6  Game Development / Newbie & Debugging Questions / Re: javax.sound: Applet Clip latency on: 2009-02-17 07:13:06
Thanks for the detailed answer so far!
Will take me some time to get familiar with that concepts.

7  Game Development / Newbie & Debugging Questions / javax.sound: Applet Clip latency on: 2009-02-16 17:59:57
Hi there,

I'm new to Java game development and having a question about sound problems.

Using Ubuntu Linux 8.10, I encounter enormous playback latency when playing
sounds like the code sample below. For learning purposes, I'm programming
a Space Invaders clone, and taking every sound approx. 0,5 seconds to
happen isn't really acceptable here.

This is only on Linux/Firefox (where it also affects Flash games), on Windows
systems there is nearly no problem. Starting the clip from the GUI thread or
from an extra created thread does not change anything.

My question: Is there any way to give some runtime parameters to the JVM
whether to use Alsa, PulseAudio or OSS ?

As I've seen on the forum, many problems disappear when using OpenAL-Wrapper
libraries instead of the javax.sound framework. I'm trying to avoid any extra libraries,
so if there is an solution, please let me know...

Thanks in advance,

   private Clip loadSound(String name)
      Clip clip=null;
         URL url=getClass().getResource(resDir + name);
         AudioInputStream sample=AudioSystem.getAudioInputStream(url);
      catch (Exception e)
         System.err.println(e.getMessage() + " : " + name);
      return clip;

   private void playSound(Clip sound)
8  Game Development / Newbie & Debugging Questions / Re: Deployment: Bundling the official Sun java JRE installers? on: 2007-11-01 13:52:35
Ah ok, thank you.
9  Game Development / Newbie & Debugging Questions / Deployment: Bundling the official Sun java JRE installers? on: 2007-10-31 14:45:25
Hi there,

I'm new to this forum and have a question about distribution and deployment of Java games, offline(!).

As far as I understand, it seems to be a problem to provide any installer that comes bundled with an official Sun java JRE installer. Is that right?

Are we (or are we not) allowed to include such an JRE installer with any kind of installation routine? I'm talking about Freeware and/or OpenSource-licensed games.

I do *not* mean creation of some fat or wrapped jar including any runtimes. I think of simply putting the offical JRE installer into an (e.g. selfUnzip-distributed) installation directory and calling it from my (non-Sun) installer routine (before or after) game binaries installation...

Besides Webstart, how do you solve that problem?

Thanks in advance!

Pages: [1]
EgonOlsen (78 views)
2018-06-10 19:43:48

EgonOlsen (58 views)
2018-06-10 19:43:44

EgonOlsen (78 views)
2018-06-10 19:43:20

DesertCoockie (260 views)
2018-05-13 18:23:11

nelsongames (158 views)
2018-04-24 18:15:36

nelsongames (157 views)
2018-04-24 18:14:32

ivj94 (898 views)
2018-03-24 14:47:39

ivj94 (162 views)
2018-03-24 14:46:31

ivj94 (811 views)
2018-03-24 14:43:53

Solater (175 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!