/frameworks/base/libs/usb/tests/accessorytest/ |
D | audio.c | 125 struct pcm *pcm = NULL; in capture_thread() local 138 while (!pcm) { in capture_thread() 139 pcm = pcm_open(input_card, input_device, PCM_IN, &config); in capture_thread() 140 if (pcm && !pcm_is_ready(pcm)) { in capture_thread() 141 pcm_close(pcm); in capture_thread() 142 pcm = NULL; in capture_thread() 144 if (!pcm) in capture_thread() 148 while (pcm) { in capture_thread() 150 if (pcm_read(pcm, buffers[index], BUFFER_SIZE)) { in capture_thread() 152 pcm_close(pcm); in capture_thread() [all …]
|
/frameworks/wilhelm/tests/examples/ |
D | slesTestRecBuffQueue.cpp | 209 SLAndroidDataFormat_PCM_EX pcm; in TestRecToBuffQueue() local 246 pcm.formatType = transferFormat == AUDIO_FORMAT_PCM_FLOAT || in TestRecToBuffQueue() 249 pcm.numChannels = channelCount; in TestRecToBuffQueue() 250 pcm.sampleRate = sampleRate * 1000; // milliHz in TestRecToBuffQueue() 251 pcm.representation = SL_ANDROID_PCM_REPRESENTATION_SIGNED_INT; in TestRecToBuffQueue() 254 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16; in TestRecToBuffQueue() 255 pcm.containerSize = 16; in TestRecToBuffQueue() 258 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_32; in TestRecToBuffQueue() 259 pcm.containerSize = 32; in TestRecToBuffQueue() 262 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_8; in TestRecToBuffQueue() [all …]
|
D | slesTestSawtoothBufferQueue.cpp | 116 SLDataFormat_PCM pcm; in TestPlaySawtoothBufferQueue() local 169 pcm.formatType = SL_DATAFORMAT_PCM; in TestPlaySawtoothBufferQueue() 170 pcm.numChannels = 1;//2; in TestPlaySawtoothBufferQueue() 171 pcm.samplesPerSec = SL_SAMPLINGRATE_44_1; in TestPlaySawtoothBufferQueue() 172 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16; in TestPlaySawtoothBufferQueue() 173 pcm.containerSize = 16; in TestPlaySawtoothBufferQueue() 174 pcm.channelMask = SL_SPEAKER_FRONT_LEFT;// | SL_SPEAKER_FRONT_RIGHT; in TestPlaySawtoothBufferQueue() 175 pcm.endianness = SL_BYTEORDER_LITTLEENDIAN; in TestPlaySawtoothBufferQueue() 177 audioSource.pFormat = (void *)&pcm; in TestPlaySawtoothBufferQueue()
|
D | slesTestDecodeToBuffQueue.cpp | 296 SLDataFormat_PCM pcm; in TestDecToBuffQueue() local 346 pcm.formatType = SL_DATAFORMAT_PCM; in TestDecToBuffQueue() 348 pcm.numChannels = 1; in TestDecToBuffQueue() 349 pcm.samplesPerSec = SL_SAMPLINGRATE_8; in TestDecToBuffQueue() 350 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16; in TestDecToBuffQueue() 351 pcm.containerSize = 16; in TestDecToBuffQueue() 352 pcm.channelMask = SL_SPEAKER_FRONT_LEFT; in TestDecToBuffQueue() 353 pcm.endianness = SL_BYTEORDER_LITTLEENDIAN; in TestDecToBuffQueue() 356 decDest.pFormat = (void * ) &pcm; in TestDecToBuffQueue()
|
D | slesTestFeedback.cpp | 410 SLDataFormat_PCM pcm; in main() local 417 pcm.formatType = SL_DATAFORMAT_PCM; in main() 418 pcm.numChannels = channels; in main() 419 pcm.samplesPerSec = sampleRate * 1000; in main() 420 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16; in main() 421 pcm.containerSize = 16; in main() 422 pcm.channelMask = channels == 1 ? SL_SPEAKER_FRONT_CENTER : in main() 424 pcm.endianness = SL_BYTEORDER_LITTLEENDIAN; in main() 426 audiosrc.pFormat = &pcm; in main() 490 audiosnk.pFormat = &pcm; in main()
|
/frameworks/base/cmds/bootanimation/ |
D | AudioPlayer.cpp | 207 struct pcm *pcm = NULL; in threadLoop() local 283 pcm = pcm_open(mCard, mDevice, PCM_OUT, &config); in threadLoop() 284 if (!pcm || !pcm_is_ready(pcm)) { in threadLoop() 285 ALOGE("Unable to open PCM device (%s)\n", pcm_get_error(pcm)); in threadLoop() 289 bufferSize = pcm_frames_to_bytes(pcm, pcm_get_buffer_size(pcm)); in threadLoop() 297 if (pcm_write(pcm, wavData, count)) { in threadLoop() 298 ALOGE("pcm_write failed (%s)", pcm_get_error(pcm)); in threadLoop() 306 if (pcm) in threadLoop() 307 pcm_close(pcm); in threadLoop()
|
/frameworks/wilhelm/tests/automated/ |
D | BufferQueue_test.cpp | 80 SLDataFormat_PCM pcm; member in TestBufferQueue 120 pcm.formatType = SL_DATAFORMAT_PCM; in SetUp() 121 pcm.numChannels = 2; in SetUp() 122 pcm.samplesPerSec = SL_SAMPLINGRATE_44_1; in SetUp() 123 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16; in SetUp() 124 pcm.containerSize = 16; in SetUp() 125 pcm.channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT; in SetUp() 126 pcm.endianness = SL_BYTEORDER_LITTLEENDIAN; in SetUp() 129 audiosrc.pFormat = &pcm; in SetUp() 140 int pcm = (int) (pcm_ * 32766.0 * gVolume); in SetUp() local [all …]
|
/frameworks/wilhelm/tests/sandbox/ |
D | intbufq.c | 105 SLDataFormat_PCM pcm; in main() local 112 pcm.formatType = SL_DATAFORMAT_PCM; in main() 113 pcm.numChannels = 2; in main() 114 pcm.samplesPerSec = SL_SAMPLINGRATE_44_1; in main() 115 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16; in main() 116 pcm.containerSize = 16; in main() 117 pcm.channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT; in main() 118 pcm.endianness = SL_BYTEORDER_LITTLEENDIAN; in main() 120 audiosrc.pFormat = &pcm; in main()
|
/frameworks/base/media/jni/ |
D | android_media_AmrInputStream.cpp | 73 jlong gae, jbyteArray pcm, jint pcmOffset, jbyteArray amr, jint amrOffset) { in android_media_AmrInputStream_GsmAmrEncoderEncode() argument 78 env->GetByteArrayRegion(pcm, pcmOffset, sizeof(inBuf), inBuf); in android_media_AmrInputStream_GsmAmrEncoderEncode()
|
/frameworks/base/media/java/android/media/ |
D | AmrInputStream.java | 134 byte[] pcm, int pcmOffset, byte[] amr, int amrOffset) throws IOException; in GsmAmrEncoderEncode() argument
|