Searched refs:mSampleRate (Results 1 - 25 of 54) sorted by relevance

123

/frameworks/av/services/audioflinger/
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/media/libstagefright/codecs/raw/
H A DSoftRaw.h52 int32_t mSampleRate; member in struct:android::SoftRaw
/frameworks/av/media/libstagefright/codecs/aacenc/
H A DSoftAACEncoder.h57 OMX_U32 mSampleRate; member in struct:android::SoftAACEncoder
H A DSoftAACEncoder2.h54 OMX_U32 mSampleRate; member in struct:android::SoftAACEncoder2
H A DSoftAACEncoder.cpp50 mSampleRate(44100),
190 aacParams->nSampleRate = mSampleRate;
214 pcmParams->nSamplingRate = mSampleRate;
275 mSampleRate = aacParams->nSampleRate;
294 mSampleRate = pcmParams->nSamplingRate;
314 mSampleRate, mNumChannels, mBitRate);
324 params.sampleRate = mSampleRate;
361 status_t err = getSampleRateTableIndex(mSampleRate, index);
363 ALOGE("Unsupported sample rate (%lu Hz)", mSampleRate);
459 (copy * 1000000ll / mSampleRate)
[all...]
H A DSoftAACEncoder2.cpp45 mSampleRate(44100),
156 aacParams->nSampleRate = mSampleRate;
180 pcmParams->nSamplingRate = mSampleRate;
241 mSampleRate = aacParams->nSampleRate;
263 mSampleRate = pcmParams->nSamplingRate;
308 mSampleRate, mNumChannels, mBitRate);
316 if (AACENC_OK != aacEncoder_SetParam(mAACEncoder, AACENC_SAMPLERATE, mSampleRate)) {
437 (copy * 1000000ll / mSampleRate)
H A DAACEncoder.cpp47 CHECK(mMeta->findInt32(kKeySampleRate, &mSampleRate));
84 params.sampleRate = mSampleRate;
115 mSampleRate, mBitRate, mChannels);
118 CHECK_EQ((status_t)OK, getSampleRateTableIndex(mSampleRate, index));
322 ((mFrameCount - 1) * 1000000LL * kNumSamplesPerFrame) / mSampleRate;
/frameworks/av/include/media/
H A DVisualizer.h109 uint32_t getSamplingRate() { return mSampleRate; }
157 uint32_t mSampleRate; member in class:android::Visualizer
/frameworks/av/libvideoeditor/lvpp/
H A DVideoEditorSRC.cpp38 mSampleRate = 0;
302 CHECK(format->findInt32(kKeySampleRate, &mSampleRate));
317 if (mSampleRate != mOutputSampleRate || mChannelCnt != 2) {
319 mSampleRate, mOutputSampleRate, mChannelCnt);
326 mResampler->setSampleRate(mSampleRate);
330 mSampleRate, mOutputSampleRate, mChannelCnt);
H A DVideoEditorSRC.h61 int mSampleRate; member in class:android::VideoEditorSRC
/frameworks/av/media/libstagefright/
H A DAudioPlayer.cpp41 mSampleRate(0),
115 success = format->findInt32(kKeySampleRate, &mSampleRate);
132 mSampleRate, numChannels, channelMask, AUDIO_FORMAT_PCM_16_BIT,
165 AUDIO_STREAM_MUSIC, mSampleRate, AUDIO_FORMAT_PCM_16_BIT, audioMask,
301 return mAudioTrack->setSampleRate(ratePermille * mSampleRate / 1000);
427 (1000000ll * numFramesPendingPlayout) / mSampleRate;
432 / mSampleRate);
462 / mSampleRate;
523 CHECK_NE(mSampleRate, 0);
524 int64_t result = -mLatencyUs + (mNumFramesPlayed * 1000000) / mSampleRate;
[all...]
H A DWAVExtractor.cpp79 int32_t mSampleRate; member in struct:android::WAVSource
205 mSampleRate = U32_LE_AT(&formatSpec[4]);
207 if (mSampleRate == 0) {
295 mTrackMeta->setInt32(kKeySampleRate, mSampleRate);
301 / mSampleRate;
326 mSampleRate(0),
333 CHECK(mMeta->findInt32(kKeySampleRate, &mSampleRate));
391 int64_t pos = (seekTimeUs * mSampleRate) / 1000000 * mNumChannels * (mBitsPerSample >> 3);
476 / (mNumChannels * bytesPerSample) / mSampleRate);
H A DAACWriter.cpp44 mSampleRate(-1),
62 mSampleRate(-1) {
102 CHECK(meta->findInt32(kKeySampleRate, &mSampleRate));
132 mFrameDurationUs = (kSamplesPerFrame * 1000000LL + (mSampleRate >> 1))
133 / mSampleRate;
268 CHECK(getSampleRateTableIndex(mSampleRate, &kSampleFreqIndex));
H A DAudioSource.cpp54 mSampleRate(sampleRate),
176 meta->setInt32(kKeySampleRate, mSampleRate);
244 (kAutoRampDurationUs * mSampleRate + 500000LL) / 1000000LL;
247 (kAutoRampStartUs * mSampleRate + 500000LL) / 1000000LL;
353 (mSampleRate >> 1)) / mSampleRate;
/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/av/include/media/stagefright/
H A DAACWriter.h61 int32_t mSampleRate; member in struct:android::AACWriter
/frameworks/av/media/libeffects/testlibs/
H A DAudioEqualizer.h208 int mSampleRate; member in class:android::AudioEqualizer
/frameworks/av/media/libstagefright/codecs/flac/enc/
H A DSoftFlacEncoder.h61 OMX_U32 mSampleRate; member in struct:android::SoftFlacEncoder
H A DSoftFlacEncoder.cpp49 mSampleRate(44100),
169 pcmParams->nSamplingRate = mSampleRate;
179 flacParams->nSampleRate = mSampleRate;
206 mSampleRate = pcmParams->nSamplingRate;
207 ALOGV("will encode %ld channels at %ldHz", mNumChannels, mSampleRate);
392 mNumChannels, mSampleRate);
402 ok = ok && FLAC__stream_encoder_set_sample_rate(mFlacStreamEncoder, mSampleRate);
/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

Completed in 478 milliseconds

123