• Home
  • Raw
  • Download

Lines Matching refs:sample

210     sp<Sample> sample = new Sample(++mNextSampleID, path);  in load()  local
211 mSamples.add(sample->sampleID(), sample); in load()
212 doLoad(sample); in load()
213 return sample->sampleID(); in load()
221 sp<Sample> sample = new Sample(++mNextSampleID, fd, offset, length); in load() local
222 mSamples.add(sample->sampleID(), sample); in load()
223 doLoad(sample); in load()
224 return sample->sampleID(); in load()
227 void SoundPool::doLoad(sp<Sample>& sample) in doLoad() argument
229 LOGV("doLoad: loading sample sampleID=%d", sample->sampleID()); in doLoad()
230 sample->startLoad(); in doLoad()
231 mDecodeThread->loadSample(sample->sampleID()); in doLoad()
246 sp<Sample> sample; in play() local
256 sample = findSample(sampleID); in play()
257 if ((sample == 0) || (sample->state() != Sample::READY)) { in play()
276 channel->play(sample, channelID, leftVolume, rightVolume, priority, loop, rate); in play()
547 void SoundChannel::play(const sp<Sample>& sample, int nextChannelID, float leftVolume, in play() argument
559 this, sample->sampleID(), nextChannelID, leftVolume, rightVolume, in play()
565 mNextEvent.set(sample, nextChannelID, leftVolume, rightVolume, priority, loop, rate); in play()
580 int numChannels = sample->numChannels(); in play()
581 uint32_t sampleRate = uint32_t(float(sample->sampleRate()) * rate + 0.5); in play()
587 frameCount = sample->size()/numChannels/ in play()
588 ((sample->format() == AUDIO_FORMAT_PCM_16_BIT) ? sizeof(int16_t) : sizeof(uint8_t)); in play()
610 newTrack = new AudioTrack(streamType, sampleRate, sample->format(), in play()
611 channels, sample->getIMemory(), 0, callback, userData); in play()
613 newTrack = new AudioTrack(streamType, sampleRate, sample->format(), in play()
630 mSample = sample; in play()
655 sp<Sample> sample; in nextEvent() local
672 sample = mNextEvent.sample(); in nextEvent()
681 play(sample, nextChannelID, leftVolume, rightVolume, priority, loop, rate); in nextEvent()
710 sp<Sample> sample = mSample; in process() local
724 if (sample != 0) { in process()
729 if (mPos < (int)sample->size()) { in process()
730 uint8_t* p = sample->data() + mPos; in process()
731 count = sample->size() - mPos; in process()
894 void SoundEvent::set(const sp<Sample>& sample, int channelID, float leftVolume, in set() argument
897 mSample = sample; in set()