Android Question Soundpool

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
1614106757184.png
 
Top