HomeSort by relevance Sort by last modified time
    Searched refs:sampleID (Results 1 - 6 of 6) sorted by null

  /frameworks/base/media/jni/soundpool/
SoundPoolThread.cpp 101 void SoundPoolThread::loadSample(int sampleID) {
102 write(SoundPoolMsg(SoundPoolMsg::LOAD_SAMPLE, sampleID));
105 void SoundPoolThread::doLoadSample(int sampleID) {
106 sp <Sample> sample = mSoundPool->findSample(sampleID);
111 mSoundPool->notify(SoundPoolEvent(SoundPoolEvent::SAMPLE_LOADED, sampleID, status));
SoundPoolThread.h 47 void loadSample(int sampleID);
56 void doLoadSample(int sampleID);
SoundPool.h 54 Sample(int sampleID, const char* url);
55 Sample(int sampleID, int fd, int64_t offset, int64_t length);
57 int sampleID() { return mSampleID; }
169 bool unload(int sampleID);
170 int play(int sampleID, float leftVolume, float rightVolume, int priority,
185 void sampleLoaded(int sampleID);
198 sp<Sample> findSample(int sampleID) { return mSamples.valueFor(sampleID); }
SoundPool.cpp 178 mSamples.add(sample->sampleID(), sample);
180 return sample->sampleID();
189 mSamples.add(sample->sampleID(), sample);
191 return sample->sampleID();
196 LOGV("doLoad: loading sample sampleID=%d", sample->sampleID());
198 mDecodeThread->loadSample(sample->sampleID());
201 bool SoundPool::unload(int sampleID)
203 LOGV("unload: sampleID=%d", sampleID);
    [all...]
android_media_SoundPool.cpp 68 android_media_SoundPool_unload(JNIEnv *env, jobject thiz, jint sampleID) {
72 return ap->unload(sampleID);
76 android_media_SoundPool_play(JNIEnv *env, jobject thiz, jint sampleID,
83 return ap->play(sampleID, leftVolume, rightVolume, priority, loop, rate);
  /cts/tests/tests/media/src/android/media/cts/
SoundPoolTest.java 214 int sampleID = loadSampleSync(SOUND_A, PRIORITY);
222 int streamID = mSoundPool.play(sampleID, leftVolume, rightVolume, priority, loop, rate);
236 streamID = mSoundPool.play(sampleID, leftVolume, rightVolume, priority, loop, rate);
251 mSoundPool.unload(sampleID);
345 private int loadSampleSync(int sampleId, int prio) throws InterruptedException {
346 int sample = mSoundPool.load(mContext, sampleId, prio);
353 * @param sampleId The sample ID.
356 private void waitUntilLoaded(int sampleId) throws InterruptedException {
360 stream = mSoundPool.play(sampleId, SILENT, SILENT, 1, 0, 1);

Completed in 40 milliseconds