OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:sampleID
(Results
1 - 3
of
3
) sorted by null
/cts/tests/tests/media/src/android/media/cts/
SoundPoolTest.java
143
int
sampleID
= loadSampleSync(getSoundA(), PRIORITY);
151
int streamID = mSoundPool.play(
sampleID
, leftVolume, rightVolume, priority, loop, rate);
165
streamID = mSoundPool.play(
sampleID
, leftVolume, rightVolume, priority, loop, rate);
180
mSoundPool.unload(
sampleID
);
263
public void onLoadComplete(SoundPool pool, int
sampleId
, int status) {
267
loadIds[loaded[0]++] =
sampleId
;
340
private int loadSampleSync(int
sampleId
, int prio) throws InterruptedException {
341
int sample = mSoundPool.load(mContext,
sampleId
, prio);
348
* @param
sampleId
The sample ID.
351
private void waitUntilLoaded(int
sampleId
) throws InterruptedException
[
all
...]
/frameworks/base/media/jni/soundpool/
SoundPool.cpp
191
sp<Sample> SoundPool::findSample(int
sampleID
)
194
return findSample_l(
sampleID
);
197
sp<Sample> SoundPool::findSample_l(int
sampleID
)
199
return mSamples.valueFor(
sampleID
);
226
int
sampleID
;
229
sampleID
= ++mNextSampleID;
230
sp<Sample> sample = new Sample(
sampleID
, fd, offset, length);
231
mSamples.add(
sampleID
, sample);
239
mDecodeThread->loadSample(
sampleID
);
240
return
sampleID
;
[
all
...]
SoundPool.h
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
);
186
sp<Sample> findSample(int
sampleID
);
198
sp<Sample> findSample_l(int
sampleID
);
201
SoundChannel* allocateChannel_l(int priority, int
sampleID
);
Completed in 1145 milliseconds