¡@

Home 

2014/10/16 ¤W¤È 08:24:38

android Programming Glossary: soundid

Playing multiple sounds using SoundManager

http://stackoverflow.com/questions/3039078/playing-multiple-sounds-using-soundmanager

queue up sounds with playSound . Each time this happens a soundId is dropped into a stack which I then pop whenever my timeout.. AudioManager.STREAM_MUSIC int soundId mSoundPool.play mSoundPoolMap.get index streamVolume streamVolume.. index streamVolume streamVolume 1 0 1f mKillSoundQueue.add soundId schedule the current sound to stop after set milliseconds mHandler.postDelayed..

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

must be registered with OnLoadCompleteListener.addSound soundId . After this the listener periodically attempts to play the.. public void onLoadComplete SoundPool soundPool int soundId int status Log.i OnLoadCompleteListener Sound soundId loaded... int soundId int status Log.i OnLoadCompleteListener Sound soundId loaded. int soundId mySoundPool.load this R.raw.funnyvoice..

Playing multiple sounds using SoundManager

http://stackoverflow.com/questions/3039078/playing-multiple-sounds-using-soundmanager

how I map particular sounds to specific sprites. Next we queue up sounds with playSound . Each time this happens a soundId is dropped into a stack which I then pop whenever my timeout occurs. This allows me to kill a stream after it has played.. if mAvailibleSounds.contains index int streamVolume mAudioManager.getStreamVolume AudioManager.STREAM_MUSIC int soundId mSoundPool.play mSoundPoolMap.get index streamVolume streamVolume 1 0 1f mKillSoundQueue.add soundId schedule the current.. int soundId mSoundPool.play mSoundPoolMap.get index streamVolume streamVolume 1 0 1f mKillSoundQueue.add soundId schedule the current sound to stop after set milliseconds mHandler.postDelayed new Runnable public void run if mKillSoundQueue.isEmpty..

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

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 it calls your.. completionListener new OnLoadCompleteListener mySoundPool @Override public void onLoadComplete SoundPool soundPool int soundId int status Log.i OnLoadCompleteListener Sound soundId loaded. int soundId mySoundPool.load this R.raw.funnyvoice 1 completionListener.addSound.. @Override public void onLoadComplete SoundPool soundPool int soundId int status Log.i OnLoadCompleteListener Sound soundId loaded. int soundId mySoundPool.load this R.raw.funnyvoice 1 completionListener.addSound soundId tell the listener to test..