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
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

Waldemar Lima

Well-Known Member
Licensed User
Longtime User
You will need to test it. On most computers the sound works properly. Might be an incompatibility with your sound driver.

Great, thanks for listening!
and I'm sorry to ask you the same question I had already asked
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…