D dazedandconfused New Member Feb 23, 2021 #1 Help! Maybe im being a bit thick here, but when type in Dim sp As SoundPool into Sub Globals, B4A throws up: Unknown type: Soundpool Are you missing a reference? error. If I substitute Mediaplayer for Soundpool, i dont get the error, but the latency on Mediaplayer is bad, so I cant use it. I'm about 800 lines into the code and the sound was the last thing to do. Am I missing a library file or something else? Thanks J
Help! Maybe im being a bit thick here, but when type in Dim sp As SoundPool into Sub Globals, B4A throws up: Unknown type: Soundpool Are you missing a reference? error. If I substitute Mediaplayer for Soundpool, i dont get the error, but the latency on Mediaplayer is bad, so I cant use it. I'm about 800 lines into the code and the sound was the last thing to do. Am I missing a library file or something else? Thanks J
Erel B4X founder Staff member Licensed User Longtime User Feb 24, 2021 #2 Add a reference to the Audio library. And if you are building a cross platform solution then use X2SoundPool class: https://www.b4x.com/android/forum/threads/xui2d-example-pack.96454/#content Upvote 0
Add a reference to the Audio library. And if you are building a cross platform solution then use X2SoundPool class: https://www.b4x.com/android/forum/threads/xui2d-example-pack.96454/#content