Searched refs:sampleID (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/media/jni/soundpool/ |
D | SoundPoolThread.cpp | 101 void SoundPoolThread::loadSample(int sampleID) { in loadSample() argument 102 write(SoundPoolMsg(SoundPoolMsg::LOAD_SAMPLE, sampleID)); in loadSample() 105 void SoundPoolThread::doLoadSample(int sampleID) { in doLoadSample() argument 106 sp <Sample> sample = mSoundPool->findSample(sampleID); in doLoadSample() 111 mSoundPool->notify(SoundPoolEvent(SoundPoolEvent::SAMPLE_LOADED, sampleID, status)); in doLoadSample()
|
D | SoundPool.cpp | 188 sp<Sample> SoundPool::findSample(int sampleID) in findSample() argument 191 return findSample_l(sampleID); in findSample() 194 sp<Sample> SoundPool::findSample_l(int sampleID) in findSample_l() argument 196 return mSamples.valueFor(sampleID); in findSample_l() 223 int sampleID; in load() local 226 sampleID = ++mNextSampleID; in load() 227 sp<Sample> sample = new Sample(sampleID, fd, offset, length); in load() 228 mSamples.add(sampleID, sample); in load() 236 mDecodeThread->loadSample(sampleID); in load() 237 return sampleID; in load() [all …]
|
D | SoundPool.h | 55 Sample(int sampleID, int fd, int64_t offset, int64_t length); 57 int sampleID() { return mSampleID; } in sampleID() function 171 bool unload(int sampleID); 172 int play(int sampleID, float leftVolume, float rightVolume, int priority, 187 void sampleLoaded(int sampleID); 188 sp<Sample> findSample(int sampleID); 200 sp<Sample> findSample_l(int sampleID); 203 SoundChannel* allocateChannel_l(int priority, int sampleID);
|
D | SoundPoolThread.h | 45 void loadSample(int sampleID); 54 void doLoadSample(int sampleID);
|
D | android_media_SoundPool.cpp | 61 android_media_SoundPool_unload(JNIEnv *env, jobject thiz, jint sampleID) { in android_media_SoundPool_unload() argument 65 return ap->unload(sampleID) ? JNI_TRUE : JNI_FALSE; in android_media_SoundPool_unload() 69 android_media_SoundPool_play(JNIEnv *env, jobject thiz, jint sampleID, in android_media_SoundPool_play() argument 76 return (jint) ap->play(sampleID, leftVolume, rightVolume, priority, loop, rate); in android_media_SoundPool_play()
|