Home
last modified time | relevance | path

Searched refs:pcm (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/libs/usb/tests/accessorytest/
Daudio.c125 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/
DslesTestRecBuffQueue.cpp214 SLAndroidDataFormat_PCM_EX pcm; in TestRecToBuffQueue() local
266 pcm.formatType = transferFormat == AUDIO_FORMAT_PCM_FLOAT || in TestRecToBuffQueue()
269 pcm.numChannels = channelCount; in TestRecToBuffQueue()
270 pcm.sampleRate = sampleRate * 1000; // milliHz in TestRecToBuffQueue()
271 pcm.representation = SL_ANDROID_PCM_REPRESENTATION_SIGNED_INT; in TestRecToBuffQueue()
274 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16; in TestRecToBuffQueue()
275 pcm.containerSize = 16; in TestRecToBuffQueue()
278 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_32; in TestRecToBuffQueue()
279 pcm.containerSize = 32; in TestRecToBuffQueue()
282 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_8; in TestRecToBuffQueue()
[all …]
DslesTestSawtoothBufferQueue.cpp113 SLDataFormat_PCM pcm; in TestPlaySawtoothBufferQueue() local
166 pcm.formatType = SL_DATAFORMAT_PCM; in TestPlaySawtoothBufferQueue()
167 pcm.numChannels = 1;//2; in TestPlaySawtoothBufferQueue()
168 pcm.samplesPerSec = SL_SAMPLINGRATE_44_1; in TestPlaySawtoothBufferQueue()
169 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16; in TestPlaySawtoothBufferQueue()
170 pcm.containerSize = 16; in TestPlaySawtoothBufferQueue()
171 pcm.channelMask = SL_SPEAKER_FRONT_LEFT;// | SL_SPEAKER_FRONT_RIGHT; in TestPlaySawtoothBufferQueue()
172 pcm.endianness = SL_BYTEORDER_LITTLEENDIAN; in TestPlaySawtoothBufferQueue()
174 audioSource.pFormat = (void *)&pcm; in TestPlaySawtoothBufferQueue()
DslesTestDecodeToBuffQueue.cpp296 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()
DslesTestFeedback.cpp418 SLDataFormat_PCM pcm; in main() local
425 pcm.formatType = SL_DATAFORMAT_PCM; in main()
426 pcm.numChannels = channels; in main()
427 pcm.samplesPerSec = sampleRate * 1000; in main()
428 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16; in main()
429 pcm.containerSize = 16; in main()
430 pcm.channelMask = channels == 1 ? SL_SPEAKER_FRONT_CENTER : in main()
432 pcm.endianness = SL_BYTEORDER_LITTLEENDIAN; in main()
434 audiosrc.pFormat = &pcm; in main()
498 audiosnk.pFormat = &pcm; in main()
/frameworks/wilhelm/tests/automated/
DBufferQueue_test.cpp80 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/
Dintbufq.c105 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/api/
Dcurrent.txt23734 field public static final java.lang.String KEY_PCM_ENCODING = "pcm-encoding";