Complete.Org: Mailing Lists: Archives: freeciv-dev: September 1999:
[Freeciv-Dev] Re: Sound playback on background
Home

[Freeciv-Dev] Re: Sound playback on background

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Kontorotsui <kontorotsui@xxxxxxxxxxxxxx>, Freeciv Dev <freeciv-dev@xxxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Sound playback on background
From: Artur Biesiadowski <abies@xxxxxxxxx>
Date: Wed, 22 Sep 1999 20:33:14 +0200


Kontorotsui wrote:
> 
> In the game I'm writing in Java (JDK1.2 pre-v2) I have added sound playback on
> background, by using the standard AudioClip.play() and loop() methods.
> 
> Beside the fact that there is no way to set the volume *groan*, I noticed that
> soon the sound, even if it is a midi music, is interrupted regularly, say once
> per second.
> 
> Needless to say, this doesn't happen in *argh* windows, so must be Java-Linux
> related.
> 
> I use the sunJIT and native threads. Disabling the JIT didn't work.
> 
> Does anybody know how to work around this problem?


Try disabling gc and check it again. If it dissapears, then you are just
experiencing gc pauses. I know it is good for real-time things like
sound/video, try to check JMF, maybe they have corrected it in some way
there.

Artur

[Prev in Thread] Current Thread [Next in Thread]