¡@

Home 

2014/10/16 ¤W¤È 08:20:48

android Programming Glossary: onloadcompletelistener

Knowing if the loading of a sound with SoundPool has been successful on Android 1.6/2.0/2.1

http://stackoverflow.com/questions/4692572/knowing-if-the-loading-of-a-sound-with-soundpool-has-been-successful-on-android

2.1 On Android 2.2 there is something called SoundPool.OnLoadCompleteListener allowing to know whether a sound has been loaded successfully.. improve this question I implemented a kind of compatible OnLoadCompleteListener class that works at least for Android 2.1. The constructor takes.. SoundPool.load .. has been called must be registered with OnLoadCompleteListener.addSound soundId . After this the listener periodically attempts..

Knowing if the loading of a sound with SoundPool has been successful on Android 1.6/2.0/2.1

http://stackoverflow.com/questions/4692572/knowing-if-the-loading-of-a-sound-with-soundpool-has-been-successful-on-android

a sound with SoundPool has been successful on Android 1.6 2.0 2.1 On Android 2.2 there is something called SoundPool.OnLoadCompleteListener allowing to know whether a sound has been loaded successfully or not. I am targeting lower API version ideally 1.6 but could.. and if correct with SoundPool android soundpool share improve this question I implemented a kind of compatible OnLoadCompleteListener class that works at least for Android 2.1. The constructor takes a SoundPool object and sounds for which the SoundPool.load.. takes a SoundPool object and sounds for which the SoundPool.load .. has been called must be registered with OnLoadCompleteListener.addSound soundId . After this the listener periodically attempts to play the requested sounds at zero volume . If successful..