Lines Matching defs:sampleRate
491 uint32_t sampleRate;
499 status = MediaPlayer::decode(mUrl, &sampleRate, &numChannels, &format, mHeap, &mSize);
501 status = MediaPlayer::decode(mFd, mOffset, mLength, &sampleRate, &numChannels, &format,
511 ALOGV("pointer = %p, size = %u, sampleRate = %u, numChannels = %d",
512 mHeap->getBase(), mSize, sampleRate, numChannels);
514 if (sampleRate > kMaxSampleRate) {
515 ALOGE("Sample rate (%u) out of range", sampleRate);
527 mSampleRate = sampleRate;
579 uint32_t sampleRate = uint32_t(float(sample->sampleRate()) * rate + 0.5);
580 uint32_t totalFrames = (kDefaultBufferCount * afFrameCount * sampleRate) / afSampleRate;
608 newTrack = new AudioTrack(streamType, sampleRate, sample->format(),
611 newTrack = new AudioTrack(streamType, sampleRate, sample->format(),
846 uint32_t sampleRate = uint32_t(float(mSample->sampleRate()) * rate + 0.5);
847 mAudioTrack->setSampleRate(sampleRate);