Home | History | Annotate | Download | only in media

Lines Matching refs:soundPool

36  * The SoundPool class manages and plays audio resources for applications.
38 * <p>A SoundPool is a collection of samples that can be loaded into memory
40 * SoundPool library uses the MediaPlayer service to decode the audio
45 * <p>In addition to low-latency playback, SoundPool can also manage the number
46 * of audio streams being rendered at once. When the SoundPool object is
48 * that can be played at a time from this single SoundPool. SoundPool tracks
50 * SoundPool will automatically stop a previously playing stream based first
71 * the SoundPool was created. In this case, the stream allocator will stop
80 * by that level. In this case, the game logic should create a new SoundPool
83 * through the list of sounds calling the appropriate SoundPool.load()
89 * trigger sounds by calling SoundPool.play(). Playing streams can be
102 * logic should call SoundPool.release() to release all the native resources
103 * in use and then set the SoundPool reference to null. If the player starts
104 * another level, a new SoundPool is created, sounds are loaded, and play
107 public class SoundPool {
111 * Constructor. Constructs a SoundPool object with the following
115 * SoundPool object
121 * @return a SoundPool object, or null if creation failed
123 public SoundPool(int maxStreams, int streamType, int srcQuality) {
376 * @param soundPool SoundPool object from the load() method
380 public void onLoadComplete(SoundPool soundPool, int sampleId, int status);
391 * Release the SoundPool resources.
393 * Release all memory and native resources used by the SoundPool
394 * object. The SoundPool
402 * Interface for SoundPool implementations.
403 * SoundPool is statically referenced and unconditionally called from all
438 * body of SoundPool itself.
441 static { System.loadLibrary("soundpool"); }
443 private final static String TAG = "SoundPool";
449 private SoundPool.OnLoadCompleteListener mOnLoadCompleteListener;
450 private SoundPool mProxy;
454 // SoundPool messages
456 // must match SoundPool.h
459 public SoundPoolImpl(SoundPool proxy, int maxStreams, int streamType, int srcQuality) {
552 public void setOnLoadCompleteListener(SoundPool.OnLoadCompleteListener listener)
574 private SoundPool mSoundPool;
576 public EventHandler(SoundPool soundPool, Looper looper) {
578 mSoundPool = soundPool;
620 * No-op implementation of SoundPool.
674 public void setOnLoadCompleteListener(SoundPool.OnLoadCompleteListener listener) {