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.
 

Attachments

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

1667472701730.png
 
Upvote 0

Similar Threads

  • Question Question
Android Question SoundPool Play folder
Replies
15
Views
7K
  • Question Question
Android Question SoundPool
Replies
1
Views
2K
  • Question Question
Android Question Soundpool
Replies
1
Views
3K
Back
Top