Searched refs:mSampleRate (Results 1 - 25 of 54) sorted by last modified time

123

/frameworks/ex/variablespeed/jni/
H A Dvariablespeed.cc288 mSampleRate(0), mChannels(0),
367 (result * 1000) / mSampleRate / mChannels + startPositionMillis_);
380 timeScaler_->Init(mSampleRate, mChannels, initialRate_, windowDuration_,
545 return mSampleRate * 1000;
594 return mChannels != 0 && mSampleRate != 0;
825 ReadSampleRateAndChannelCount(pCntxt, &mSampleRate, &mChannels);
H A Dvariablespeed.h117 SLuint32 mSampleRate; member in class:AudioEngine
/frameworks/base/voip/jni/rtp/
H A DAudioGroup.cpp125 int mSampleRate; member in class:__anon1172::AudioStream
178 mSampleRate = sampleRate / 1000;
180 mInterval = mSampleCount / mSampleRate;
183 for (mBufferMask = 8; mBufferMask < mSampleRate; mBufferMask <<= 1);
222 (codec ? codec->name : "RAW"), mSampleRate, mInterval, mMode);
250 head *= mSampleRate;
251 tail *= mSampleRate;
253 if (sampleRate == mSampleRate) {
284 if (duration >= 0 && duration < mSampleRate * DTMF_PERIOD) {
292 if (duration >= mSampleRate * DTMF_PERIO
500 int mSampleRate; member in class:__anon1172::AudioGroup
[all...]
/frameworks/base/media/java/android/media/
H A DAudioRecord.java130 private int mSampleRate = 22050; field in class:AudioRecord
238 mRecordSource, mSampleRate, mChannels, mAudioFormat, mNativeBufferSizeInBytes,
258 // mSampleRate is valid
277 mSampleRate = sampleRateInHz;
370 return mSampleRate;
H A DAudioTrack.java184 private int mSampleRate; // initialized by all constructors field in class:AudioTrack
327 mStreamType, mSampleRate, mChannels, mAudioFormat,
360 // mSampleRate is valid
384 mSampleRate = sampleRateInHz;
537 return mSampleRate;
/frameworks/av/media/libstagefright/codecs/raw/
H A DSoftRaw.cpp45 mSampleRate(44100) {
119 pcmParams->nSamplingRate = mSampleRate;
156 mSampleRate = pcmParams->nSamplingRate;
H A DSoftRaw.h52 int32_t mSampleRate; member in struct:android::SoftRaw
/frameworks/av/media/libstagefright/include/
H A DAACEncoder.h51 int32_t mSampleRate; member in class:android::AACEncoder
H A DWAVExtractor.h51 uint32_t mSampleRate; member in class:android::WAVExtractor
/frameworks/av/services/audioflinger/
H A DAudioFlinger.cpp1140 mAudioFlinger(audioFlinger), mSampleRate(0), mFrameCount(0), mNormalFrameCount(0),
1285 snprintf(buffer, SIZE, "Sample rate: %d\n", mSampleRate);
1752 (sampleRate == mSampleRate) &&
1769 "mFrameCount=%d format=%d isLinear=%d channelMask=%#x sampleRate=%d mSampleRate=%d "
1773 channelMask, sampleRate, mSampleRate, hasFastMixer(), tid, mFastTrackAvailMask);
1780 uint32_t minBufCount = latencyMs / ((1000 * mNormalFrameCount) / mSampleRate);
1793 if (sampleRate != mSampleRate || format != mFormat || channelMask != mChannelMask) {
1803 if (sampleRate > mSampleRate*2) {
1804 ALOGE("Sample rate out of range: %d mSampleRate %d", sampleRate, mSampleRate);
[all...]
H A DAudioFlinger.h467 const uint32_t mSampleRate; // initial sample rate only; for tracks which member in class:android::AudioFlinger::ThreadBase::TrackBase
556 uint32_t sampleRate() const { return mSampleRate; }
695 uint32_t mSampleRate; member in class:android::AudioFlinger::ThreadBase
H A DAudioMixer.cpp101 mSampleRate(sampleRate)
202 t->sampleRate = mSampleRate;
462 if (track.setResampler(uint32_t(valueInt), mSampleRate)) {
475 track.sampleRate = mSampleRate;
H A DAudioMixer.h240 const uint32_t mSampleRate; member in class:android::AudioMixer
H A DAudioResampler.cpp217 mSampleRate(sampleRate), mInSampleRate(sampleRate), mInputIndex(0),
250 mPhaseIncrement = (uint32_t)((kPhaseMultiplier * inSampleRate) / mSampleRate);
272 return mPTS + ((outputFrameIndex * mLocalTimeFreq) / mSampleRate);
312 size_t inFrameCount = (outFrameCount*mInSampleRate)/mSampleRate;
409 size_t inFrameCount = (outFrameCount*mInSampleRate)/mSampleRate;
H A DAudioResampler.h87 const int32_t mSampleRate; member in class:android::AudioResampler
H A DAudioResamplerCubic.cpp63 size_t inFrameCount = (outFrameCount*mInSampleRate)/mSampleRate;
129 size_t inFrameCount = (outFrameCount*mInSampleRate)/mSampleRate;
H A DAudioResamplerSinc.cpp257 mFirCoefs = (mInSampleRate <= mSampleRate) ? readResampleCoefficients(true) :
261 mFirCoefs = (mInSampleRate <= mSampleRate) ? mFirCoefsUp : mFirCoefsDown;
289 size_t inFrameCount = (outFrameCount*mInSampleRate)/mSampleRate;
H A DFastMixer.cpp208 dumpState->mSampleRate = sampleRate;
293 if (fastTrack->mSampleRate != 0 && fastTrack->mSampleRate != sampleRate) {
295 AudioMixer::SAMPLE_RATE, (void*) fastTrack->mSampleRate);
324 if (fastTrack->mSampleRate != 0 &&
325 fastTrack->mSampleRate != sampleRate) {
327 AudioMixer::SAMPLE_RATE, (void*) fastTrack->mSampleRate);
598 mSampleRate(0), mFrameCount(0), /* mMeasuredWarmupTs({0, 0}), */ mWarmupCycles(0),
669 double mixPeriodSec = (double) mFrameCount / (double) mSampleRate;
676 mSampleRate, mFrameCoun
[all...]
H A DFastMixer.h100 uint32_t mSampleRate; member in struct:android::FastMixerDumpState
H A DFastMixerState.cpp22 mBufferProvider(NULL), mVolumeProvider(NULL), mSampleRate(0),
H A DFastMixerState.h45 unsigned mSampleRate; // optional; if zero then use mixer sample rate member in struct:android::FastTrack
/frameworks/base/core/java/android/speech/srec/
H A DWaveHeader.java54 private int mSampleRate; field in class:WaveHeader
75 mSampleRate = sampleRate;
124 return mSampleRate;
133 mSampleRate = sampleRate;
192 mSampleRate = readInt(in);
196 if (byteRate != mNumChannels * mSampleRate * mBitsPerSample / 8) {
241 writeInt(out, mSampleRate);
242 writeInt(out, mNumChannels * mSampleRate * mBitsPerSample / 8);
273 mFormat, mNumChannels, mSampleRate, mBitsPerSample, mNumBytes);
/frameworks/av/cmds/stagefright/
H A DSineSource.cpp14 mSampleRate(sampleRate),
54 meta->setInt32(kKeySampleRate, mSampleRate);
76 const double k = kFrequency / mSampleRate * (2.0 * M_PI);
91 kKeyTime, ((int64_t)mPhase * 1000000) / mSampleRate);
H A DSineSource.h30 int32_t mSampleRate; member in struct:android::SineSource
/frameworks/av/include/media/
H A DMediaProfiles.h245 mSampleRate(sampleRate),
251 mSampleRate = copy.mSampleRate;
259 int mSampleRate; member in struct:android::MediaProfiles::AudioCodec

Completed in 214 milliseconds

123