Android Question How to play sound for only once by using Soundpool

Dear developers, does somebody us know how to play .mp3 file by using Soundpool? But I only want so that Sound pool will not play one file for twice or for more times. I have found ount one Soundpool example on this forum. But Soundpool play files twice. And even if I have removed numbers after comma, AThe Soundpool still plaied files twice, not only for once. Or is it a unchangable build in property of Soundpool for Android?
Thank you very much for example.
I Am sending older project from other forum thread. File is being plaied twice. I want to play files only for once.
So someone could modify this .zip project if Soundpool allow to play file for once.


    52.6 KB · Views: 42


Licensed User
Longtime User
SP.Play(...) 5th parameter (Loop as int) should be set to 0

Upvote 0

Similar Threads