Home
last modified time | relevance | path

Searched refs:sampleID (Results 1 – 5 of 5) sorted by relevance

/frameworks/av/media/libmedia/
DSoundPoolThread.cpp101 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()
DSoundPool.cpp207 mSamples.add(sample->sampleID(), sample); in load()
209 return sample->sampleID(); in load()
218 mSamples.add(sample->sampleID(), sample); in load()
220 return sample->sampleID(); in load()
225 ALOGV("doLoad: loading sample sampleID=%d", sample->sampleID()); in doLoad()
227 mDecodeThread->loadSample(sample->sampleID()); in doLoad()
230 bool SoundPool::unload(int sampleID) in unload() argument
232 ALOGV("unload: sampleID=%d", sampleID); in unload()
234 return mSamples.removeItem(sampleID); in unload()
237 int SoundPool::play(int sampleID, float leftVolume, float rightVolume, in play() argument
[all …]
DSoundPoolThread.h45 void loadSample(int sampleID);
54 void doLoadSample(int sampleID);
/frameworks/av/include/media/
DSoundPool.h55 Sample(int sampleID, const char* url);
56 Sample(int sampleID, int fd, int64_t offset, int64_t length);
58 int sampleID() { return mSampleID; } in sampleID() function
174 bool unload(int sampleID);
175 int play(int sampleID, float leftVolume, float rightVolume, int priority,
190 void sampleLoaded(int sampleID);
203 sp<Sample> findSample(int sampleID) { return mSamples.valueFor(sampleID); } in findSample() argument
/frameworks/base/media/jni/soundpool/
Dandroid_media_SoundPool_SoundPoolImpl.cpp68 android_media_SoundPool_SoundPoolImpl_unload(JNIEnv *env, jobject thiz, jint sampleID) { in android_media_SoundPool_SoundPoolImpl_unload() argument
72 return ap->unload(sampleID); in android_media_SoundPool_SoundPoolImpl_unload()
76 android_media_SoundPool_SoundPoolImpl_play(JNIEnv *env, jobject thiz, jint sampleID, in android_media_SoundPool_SoundPoolImpl_play() argument
83 return ap->play(sampleID, leftVolume, rightVolume, priority, loop, rate); in android_media_SoundPool_SoundPoolImpl_play()