B4J Question [ XUI 2D ] why does an initial SOM delay occur in all examples?

Waldemar Lima

Well-Known Member
Licensed User
Longtime User
Hello person, I am studying about XUI 2D, and I noticed that all the examples found in: HERE , they have a delay to play a sound in all the examples

examples :
* when opening the example of Mario and trying to jump as soon as the game is started, note that it takes a few seconds for the sound to be played ...
* in Space Invaders, when the game is started, and you try to shoot, it is noted that it takes a few seconds for the shooting sound to be executed ...
* are just situations, but it happens in other examples too ...

Why does it happen ?
Is there any way to fix this?
 

Waldemar Lima

Well-Known Member
Licensed User
Longtime User
Are you testing it with Java 11+ ?

testing on 1.8
1615813041022.png


which version of java do you recommend using?
 
Upvote 0

Waldemar Lima

Well-Known Member
Licensed User
Longtime User
I analyzed it in some forums, do you recommend that I stay with AudioClip or that I use MediaPlayer to run the sound?
 
Upvote 0
Top