[Freeciv-Dev] Re: Sound playback on background
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
- [Freeciv-Dev] Re: Sound playback on background,
Artur Biesiadowski <=
|
|