Home
last modified time | relevance | path

Searched refs:mNumChannels (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/core/java/android/speech/srec/
DWaveHeader.java53 private short mNumChannels; field in WaveHeader
76 mNumChannels = numChannels; in WaveHeader()
106 return mNumChannels; in getNumChannels()
115 mNumChannels = numChannels; in setNumChannels()
191 mNumChannels = readShort(in); in read()
196 if (byteRate != mNumChannels * mSampleRate * mBitsPerSample / 8) { in read()
199 if (blockAlign != mNumChannels * mBitsPerSample / 8) { in read()
240 writeShort(out, mNumChannels); in write()
242 writeInt(out, mNumChannels * mSampleRate * mBitsPerSample / 8); in write()
243 writeShort(out, (short)(mNumChannels * mBitsPerSample / 8)); in write()
[all …]
/frameworks/base/media/libeffects/testlibs/
DAudioBiquadFilter.cpp38 mNumChannels = nChannels; in configure()
96 if (mNumChannels == 1) { in setState()
104 if (mNumChannels == 1) { in setState()
112 if (mNumChannels == 1) { in setState()
146 memcpy(out, in, frameCount * mNumChannels * sizeof(audio_sample_t)); in process_bypass()
210 for (int ch = 0; ch < mNumChannels; ++ch) { in process_normal_multi()
230 in += mNumChannels; in process_normal_multi()
231 out += mNumChannels; in process_normal_multi()
237 in -= frameCount * mNumChannels - 1; in process_normal_multi()
238 out -= frameCount * mNumChannels - 1; in process_normal_multi()
DAudioFormatAdapter.h62 mNumChannels = nChannels; in configure()
77 uint32_t nSamplesChannels = numSamplesIter * mNumChannels; in process()
109 int mNumChannels; variable
174 numSamples *= mNumChannels; in MixOutput()
DAudioBiquadFilter.h123 int mNumChannels; variable
/frameworks/base/media/libstagefright/
DWAVExtractor.cpp73 int32_t mNumChannels; member
176 mNumChannels = U16_LE_AT(&formatSpec[2]); in init()
177 if (mNumChannels != 1 && mNumChannels != 2) { in init()
226 mTrackMeta->setInt32(kKeyChannelCount, mNumChannels); in init()
232 1000000LL * (mDataSize / (mNumChannels * bytesPerSample)) in init()
259 mNumChannels(0), in WAVSource()
266 CHECK(mMeta->findInt32(kKeyChannelCount, &mNumChannels)); in WAVSource()
323 int64_t pos = (seekTimeUs * mSampleRate) / 1000000 * mNumChannels * (mBitsPerSample >> 3); in read()
408 / (mNumChannels * bytesPerSample) / mSampleRate); in read()
/frameworks/base/cmds/stagefright/
DSineSource.cpp15 mNumChannels(numChannels), in SineSource()
53 meta->setInt32(kKeyChannelCount, mNumChannels); in getFormat()
71 size_t frameSize = mNumChannels * sizeof(int16_t); in read()
83 if (mNumChannels == 2) { in read()
DSineSource.h31 int32_t mNumChannels; member
/frameworks/base/media/jni/soundpool/
DSoundPool.h57 int numChannels() { return mNumChannels; } in numChannels()
69mNumChannels = numChannels; mSampleRate = sampleRate; mFormat = format; mSize = size; mData = data… in init()
79 uint8_t mNumChannels : 2; variable
119 SoundChannel() : mAudioTrack(0), mState(IDLE), mNumChannels(1), in SoundChannel()
137 int numChannels() { return mNumChannels; } in numChannels()
153 int mNumChannels; variable
DSoundPool.cpp534 mNumChannels = numChannels; in doLoad()
636 mNumChannels = numChannels; in play()
868 uint32_t loopEnd = mSample->size()/mNumChannels/ in setLoop()
891 mState, mChannelID, mNumChannels, mPos, mPriority, mLoop); in dump()
/frameworks/base/media/libstagefright/codecs/mp3dec/
DSoftMP3.cpp49 mNumChannels(2), in SoftMP3()
140 pcmParams->nChannels = mNumChannels; in internalGetParameter()
245 || mConfig->num_channels != mNumChannels) { in onQueueFilled()
247 mNumChannels = mConfig->num_channels; in onQueueFilled()
268 mNumFramesOutput += mConfig->outputFrameSize / mNumChannels; in onQueueFilled()
DSoftMP3.h57 int32_t mNumChannels; member
/frameworks/base/media/libstagefright/codecs/g711/dec/
DSoftG711.cpp44 mNumChannels(1), in SoftG711()
124 pcmParams->nChannels = mNumChannels; in internalGetParameter()
151 mNumChannels = pcmParams->nChannels; in internalSetParameter()
DSoftG711.h49 OMX_U32 mNumChannels; member
/frameworks/base/media/libstagefright/include/
DMP3Decoder.h46 int32_t mNumChannels; member
DVorbisDecoder.h54 int32_t mNumChannels; member
DWAVExtractor.h49 uint16_t mNumChannels; variable