Searched refs:SoundPool (Results 1 - 11 of 11) sorted by relevance

/frameworks/av/media/libmedia/
H A DSoundPoolThread.h24 #include <media/SoundPool.h>
39 * This class handles background requests from the SoundPool
43 SoundPoolThread(SoundPool* SoundPool);
60 SoundPool* mSoundPool;
H A DSoundPool.cpp18 #define LOG_TAG "SoundPool"
25 #include <media/SoundPool.h>
38 SoundPool::SoundPool(int maxChannels, audio_stream_type_t streamType, int srcQuality) function in class:android::SoundPool
40 ALOGV("SoundPool constructor: maxChannels=%d, streamType=%d, srcQuality=%d",
74 SoundPool::~SoundPool()
76 ALOGV("SoundPool destructor");
93 void SoundPool::addToRestartList(SoundChannel* channel)
102 void SoundPool
[all...]
H A DSoundPoolThread.cpp61 SoundPoolThread::SoundPoolThread(SoundPool* soundPool) :
H A DAndroid.mk55 SoundPool.cpp \
/frameworks/base/media/java/android/media/
H A DMediaActionSound.java20 import android.media.SoundPool;
45 private SoundPool mSoundPool;
97 mSoundPool = new SoundPool(NUM_MEDIA_SOUND_STREAMS,
171 private SoundPool.OnLoadCompleteListener mLoadCompleteListener =
172 new SoundPool.OnLoadCompleteListener() {
173 public void onLoadComplete(SoundPool soundPool,
H A DSoundPool.java36 * 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
107 public class SoundPool { class
123 public SoundPool(int maxStreams, int streamType, int srcQuality) { method in class:SoundPool
[all...]
H A DAudioService.java190 private SoundPool mSoundPool;
389 // listener for SoundPool sample load completion indication
391 // thread for SoundPool listener
393 // message looper for SoundPool listener
1855 android.media.SoundPool.OnLoadCompleteListener {
1866 // do not wait ack for samples rejected upfront by SoundPool
1873 public void onLoadComplete(SoundPool soundPool, int sampleId, int status) {
3294 mSoundPool = new SoundPool(NUM_SOUNDPOOL_CHANNELS, AudioSystem.STREAM_SYSTEM, 0);
3309 Log.w(TAG, "onLoadSoundEffects() SoundPool listener or thread creation error");
/frameworks/base/media/jni/soundpool/
H A Dandroid_media_SoundPool_SoundPoolImpl.cpp20 #define LOG_TAG "SoundPool-JNI"
26 #include <media/SoundPool.h>
36 static inline SoundPool* MusterSoundPool(JNIEnv *env, jobject thiz) {
37 return (SoundPool*)env->GetIntField(thiz, fields.mNativeContext);
45 SoundPool *ap = MusterSoundPool(env, thiz);
61 SoundPool *ap = MusterSoundPool(env, thiz);
70 SoundPool *ap = MusterSoundPool(env, thiz);
81 SoundPool *ap = MusterSoundPool(env, thiz);
90 SoundPool *ap = MusterSoundPool(env, thiz);
99 SoundPool *a
[all...]
/frameworks/av/include/media/
H A DSoundPool.h35 class SoundPool;
49 typedef void SoundPoolCallback(SoundPoolEvent event, SoundPool* soundPool, void* user);
127 void init(SoundPool* soundPool);
153 SoundPool* mSoundPool;
166 class SoundPool { class in namespace:android
170 SoundPool(int maxChannels, audio_stream_type_t streamType, int srcQuality);
171 ~SoundPool();
200 SoundPool() {} // no default constructor function in class:android::SoundPool
/frameworks/base/media/tests/SoundPoolTest/src/com/android/
H A DSoundPoolTest.java29 import android.media.SoundPool;
30 import android.media.SoundPool.OnLoadCompleteListener;
69 private SoundPool mSoundPool = null;
77 super("SoundPool.TestThread");
81 android.media.SoundPool.OnLoadCompleteListener {
82 public void onLoadComplete(SoundPool soundPool, int sampleId, int status) {
114 mSoundPool = new SoundPool(numStreams, AudioSystem.STREAM_MUSIC, 0);
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardViewMediator.java36 import android.media.SoundPool;
245 private SoundPool mLockSounds;
524 mLockSounds = new SoundPool(1, AudioManager.STREAM_SYSTEM, 0);

Completed in 867 milliseconds