Lines Matching refs:sample

227         sp<Sample> sample = new Sample(sampleID, fd, offset, length);  in load()  local
228 mSamples.add(sampleID, sample); in load()
229 sample->startLoad(); in load()
261 sp<Sample> sample(findSample_l(sampleID)); in play() local
262 if ((sample == 0) || (sample->state() != Sample::READY)) { in play()
281 channel->play(sample, channelID, leftVolume, rightVolume, priority, loop, rate); in play()
723 void SoundChannel::play(const sp<Sample>& sample, int nextChannelID, float leftVolume, in play() argument
735 this, sample->sampleID(), nextChannelID, leftVolume, rightVolume, in play()
741 mNextEvent.set(sample, nextChannelID, leftVolume, rightVolume, priority, loop, rate); in play()
757 int numChannels = sample->numChannels(); in play()
758 uint32_t sampleRate = uint32_t(float(sample->sampleRate()) * rate + 0.5); in play()
762 const audio_format_t format = sample->format(); in play()
765 frameCount = sample->size() / frameSize; in play()
777 if (mAudioTrack != 0 && mPrevSampleID == sample->sampleID()) { in play()
781 ALOGV("reusing track %p for sample %d", mAudioTrack.get(), sample->sampleID()); in play()
792 audio_channel_mask_t sampleChannelMask = sample->channelMask(); in play()
800 newTrack = new AudioTrack(streamType, sampleRate, sample->format(), in play()
801 channelMask, sample->getIMemory(), AUDIO_OUTPUT_FLAG_FAST, callback, userData, in play()
807 newTrack = new AudioTrack(streamType, sampleRate, sample->format(), in play()
822 ALOGV("using new track %p for sample %d", newTrack.get(), sample->sampleID()); in play()
831 mSample = sample; in play()
854 sp<Sample> sample; in nextEvent() local
871 sample = mNextEvent.sample(); in nextEvent()
880 play(sample, nextChannelID, leftVolume, rightVolume, priority, loop, rate); in nextEvent()
909 sp<Sample> sample = mSample; in process() local
923 if (sample != 0) { in process()
928 if (mPos < (int)sample->size()) { in process()
929 uint8_t* p = sample->data() + mPos; in process()
930 count = sample->size() - mPos; in process()
1127 void SoundEvent::set(const sp<Sample>& sample, int channelID, float leftVolume, in set() argument
1130 mSample = sample; in set()