The library works great for playing sounds, and is really simple to use, but I have 1 small issue with it. The .stop() command does not seem to work (on Android at least, not tested on iOS)
Given the following code the 5 second alarm sound plays to completion every time:
Looks like the code is calling SoundPool.stop with the sound ID returned from SoundPool.load, while it expects the stream ID returned from the SoundPool.play call.
The library works great for playing sounds, and is really simple to use, but I have 1 small issue with it. The .stop() command does not seem to work (on Android at least, not tested on iOS)
Given the following code the 5 second alarm sound plays to completion every time:
(Not my actual code... just a simple sample to illustrate the problem)
Any idea why?