Waldemar Lima Well-Known Member Licensed User Longtime User Mar 15, 2021 #1 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?
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?
Erel B4X founder Staff member Licensed User Longtime User Mar 15, 2021 #2 It happens on some computers (never on Android or iOS). I'm not sure why it happens. You are seeing the behavior of JavaFX AudioClip. Are you testing it with Java 11+ ? Upvote 0
It happens on some computers (never on Android or iOS). I'm not sure why it happens. You are seeing the behavior of JavaFX AudioClip. Are you testing it with Java 11+ ?
Waldemar Lima Well-Known Member Licensed User Longtime User Mar 15, 2021 #3 Erel said: Are you testing it with Java 11+ ? Click to expand... testing on 1.8 which version of java do you recommend using? Upvote 0
Erel said: Are you testing it with Java 11+ ? Click to expand... testing on 1.8 which version of java do you recommend using?
Erel B4X founder Staff member Licensed User Longtime User Mar 15, 2021 #4 Test it with Java 14: https://www.b4x.com/android/forum/threads/b4j-v8-30-beta-is-available-for-download.117877/#content Upvote 0
Test it with Java 14: https://www.b4x.com/android/forum/threads/b4j-v8-30-beta-is-available-for-download.117877/#content
Waldemar Lima Well-Known Member Licensed User Longtime User Mar 15, 2021 #5 Erel said: Test it with Java 14: https://www.b4x.com/android/forum/threads/b4j-v8-30-beta-is-available-for-download.117877/#content Click to expand... same problem :c Upvote 0
Erel said: Test it with Java 14: https://www.b4x.com/android/forum/threads/b4j-v8-30-beta-is-available-for-download.117877/#content Click to expand... same problem :c
Waldemar Lima Well-Known Member Licensed User Longtime User May 5, 2021 #6 Waldemar Lima said: same problem :c Click to expand... any indication of what it might be? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User May 5, 2021 #7 I already answered: "I'm not sure why it happens. You are seeing the behavior of JavaFX AudioClip." It will not happen in B4A and B4i. Upvote 0
I already answered: "I'm not sure why it happens. You are seeing the behavior of JavaFX AudioClip." It will not happen in B4A and B4i.
Waldemar Lima Well-Known Member Licensed User Longtime User May 5, 2021 #8 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
I analyzed it in some forums, do you recommend that I stay with AudioClip or that I use MediaPlayer to run the sound?
Erel B4X founder Staff member Licensed User Longtime User May 5, 2021 #9 You will need to test it. On most computers the sound works properly. Might be an incompatibility with your sound driver. Upvote 0
You will need to test it. On most computers the sound works properly. Might be an incompatibility with your sound driver.
Waldemar Lima Well-Known Member Licensed User Longtime User May 5, 2021 #10 Erel said: You will need to test it. On most computers the sound works properly. Might be an incompatibility with your sound driver. Click to expand... Great, thanks for listening! and I'm sorry to ask you the same question I had already asked Upvote 0
Erel said: You will need to test it. On most computers the sound works properly. Might be an incompatibility with your sound driver. Click to expand... Great, thanks for listening! and I'm sorry to ask you the same question I had already asked