Searched refs:pcm (Results 1 - 10 of 10) sorted by relevance

/frameworks/base/core/java/android/speech/srec/
H A DUlawEncoderInputStream.java28 * InputStream which transforms 16 bit pcm data to ulaw data.
81 int pcm = (0xff & pcmBuf[pcmOffset++]) + (pcmBuf[pcmOffset++] << 8);
82 pcm = (pcm * coef) >> SCALE_BITS;
85 if (pcm >= 0) {
86 ulaw = pcm <= 0 ? 0xff :
87 pcm <= 30 ? 0xf0 + (( 30 - pcm) >> 1) :
88 pcm <= 94 ? 0xe0 + (( 94 - pcm) >>
[all...]
/frameworks/wilhelm/tests/automated/
H A DBufferQueue_test.cpp80 SLDataFormat_PCM pcm; member in class:TestBufferQueue
120 pcm.formatType = SL_DATAFORMAT_PCM;
121 pcm.numChannels = 2;
122 pcm.samplesPerSec = SL_SAMPLINGRATE_44_1;
123 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16;
124 pcm.containerSize = 16;
125 pcm.channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT;
126 pcm.endianness = SL_BYTEORDER_LITTLEENDIAN;
129 audiosrc.pFormat = &pcm;
140 int pcm local
[all...]
/frameworks/wilhelm/tests/examples/
H A DslesTestSawtoothBufferQueue.cpp116 SLDataFormat_PCM pcm; local
169 pcm.formatType = SL_DATAFORMAT_PCM;
170 pcm.numChannels = 1;//2;
171 pcm.samplesPerSec = SL_SAMPLINGRATE_44_1;
172 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16;
173 pcm.containerSize = 16;
174 pcm.channelMask = SL_SPEAKER_FRONT_LEFT;// | SL_SPEAKER_FRONT_RIGHT;
175 pcm.endianness = SL_BYTEORDER_LITTLEENDIAN;
177 audioSource.pFormat = (void *)&pcm;
H A DslesTestRecBuffQueue.cpp167 SLDataFormat_PCM pcm; local
204 pcm.formatType = SL_DATAFORMAT_PCM;
205 pcm.numChannels = 1;
206 pcm.samplesPerSec = SL_SAMPLINGRATE_22_05;
207 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16;
208 pcm.containerSize = 16;
209 pcm.channelMask = SL_SPEAKER_FRONT_LEFT;
210 pcm.endianness = SL_BYTEORDER_LITTLEENDIAN;
213 recDest.pFormat = (void * ) &pcm;
H A DslesTestFeedback.cpp294 SLDataFormat_PCM pcm; local
301 pcm.formatType = SL_DATAFORMAT_PCM;
302 pcm.numChannels = channels;
303 pcm.samplesPerSec = sampleRate * 1000;
304 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16;
305 pcm.containerSize = 16;
306 pcm.channelMask = channels == 1 ? SL_SPEAKER_FRONT_CENTER :
308 pcm.endianness = SL_BYTEORDER_LITTLEENDIAN;
310 audiosrc.pFormat = &pcm;
350 audiosnk.pFormat = &pcm;
[all...]
H A DslesTestDecodeToBuffQueue.cpp296 SLDataFormat_PCM pcm; local
346 pcm.formatType = SL_DATAFORMAT_PCM;
348 pcm.numChannels = 1;
349 pcm.samplesPerSec = SL_SAMPLINGRATE_8;
350 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16;
351 pcm.containerSize = 16;
352 pcm.channelMask = SL_SPEAKER_FRONT_LEFT;
353 pcm.endianness = SL_BYTEORDER_LITTLEENDIAN;
356 decDest.pFormat = (void * ) &pcm;
/frameworks/wilhelm/tests/sandbox/
H A Dintbufq.c105 SLDataFormat_PCM pcm; local
112 pcm.formatType = SL_DATAFORMAT_PCM;
113 pcm.numChannels = 2;
114 pcm.samplesPerSec = SL_SAMPLINGRATE_44_1;
115 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16;
116 pcm.containerSize = 16;
117 pcm.channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT;
118 pcm.endianness = SL_BYTEORDER_LITTLEENDIAN;
120 audiosrc.pFormat = &pcm;
/frameworks/base/media/jni/
H A Dandroid_media_AmrInputStream.cpp73 jint gae, jbyteArray pcm, jint pcmOffset, jbyteArray amr, jint amrOffset) {
78 env->GetByteArrayRegion(pcm, pcmOffset, sizeof(inBuf), inBuf);
71 android_media_AmrInputStream_GsmAmrEncoderEncode(JNIEnv *env, jclass clazz, jint gae, jbyteArray pcm, jint pcmOffset, jbyteArray amr, jint amrOffset) argument
/frameworks/base/media/java/android/media/
H A DAmrInputStream.java40 // pcm input stream
85 // fetch a 20 msec frame of pcm
136 byte[] pcm, int pcmOffset, byte[] amr, int amrOffset) throws IOException;
135 GsmAmrEncoderEncode(int gae, byte[] pcm, int pcmOffset, byte[] amr, int amrOffset) argument
/frameworks/ex/variablespeed/jni/
H A Dvariablespeed.cc610 SLDataFormat_PCM pcm = {SL_DATAFORMAT_PCM, 1, SL_SAMPLINGRATE_44_1, local
613 SLDataSink decDest = { &decBuffQueue, &pcm };

Completed in 106 milliseconds