Searched defs:Sample (Results 1 - 3 of 3) sorted by relevance

/frameworks/base/media/jni/soundpool/
H A DSoundPool.cpp177 sp<Sample> sample = new Sample(++mNextSampleID, path);
188 sp<Sample> sample = new Sample(++mNextSampleID, fd, offset, length);
194 void SoundPool::doLoad(sp<Sample>& sample)
213 sp<Sample> sample;
223 if ((sample == 0) || (sample->state() != Sample::READY)) {
421 Sample::Sample(int sampleID, const char* url) function in class:android::Sample
429 Sample function in class:android::Sample
[all...]
H A DSoundPool.h51 class Sample : public RefBase { class in namespace:android
54 Sample(int sampleID, const char* url);
55 Sample(int sampleID, int fd, int64_t offset, int64_t length);
56 ~Sample();
95 void set(const sp<Sample>& sample, int channelID, float leftVolume,
97 sp<Sample> sample() { return mSample; }
107 sp<Sample> mSample;
124 void play(const sp<Sample>& sample, int channelID, float leftVolume, float rightVolume,
197 void doLoad(sp<Sample>& sample);
198 sp<Sample> findSampl
[all...]
/frameworks/base/media/libmedia/
H A DToneGenerator.cpp1548 long Sample; // current sample local
1569 Sample = ((lA1 * lS1) >> S_Q14) - lS2;
1572 lS1 = Sample;
1573 Sample = ((lAmplitude>>16) * Sample) >> S_Q15;
1574 *(outBuffer++) += (short)Sample; // put result in buffer
1580 Sample = ((lA1 * lS1) >> S_Q14) - lS2;
1583 lS1 = Sample;
1584 Sample = (lAmplitude * Sample) >> S_Q1
[all...]

Completed in 49 milliseconds