/external/tinyalsa_new/src/ |
D | pcm.c | 298 struct pcm { struct 330 static int oops(struct pcm *pcm, int e, const char *fmt, ...) in oops() argument 336 vsnprintf(pcm->error, PCM_ERROR_MAX, fmt, ap); in oops() 338 sz = strlen(pcm->error); in oops() 341 snprintf(pcm->error + sz, PCM_ERROR_MAX - sz, in oops() 351 unsigned int pcm_get_buffer_size(const struct pcm *pcm) in pcm_get_buffer_size() argument 353 return pcm->buffer_size; in pcm_get_buffer_size() 361 unsigned int pcm_get_channels(const struct pcm *pcm) in pcm_get_channels() argument 363 return pcm->config.channels; in pcm_get_channels() 373 const struct pcm_config * pcm_get_config(const struct pcm *pcm) in pcm_get_config() argument [all …]
|
/external/tinyalsa/ |
D | pcm.c | 253 struct pcm { struct 276 unsigned int pcm_get_buffer_size(struct pcm *pcm) in pcm_get_buffer_size() argument 278 return pcm->buffer_size; in pcm_get_buffer_size() 281 const char* pcm_get_error(struct pcm *pcm) in pcm_get_error() argument 283 return pcm->error; in pcm_get_error() 286 unsigned int pcm_get_subdevice(struct pcm *pcm) in pcm_get_subdevice() argument 288 return pcm->subdevice; in pcm_get_subdevice() 291 static int oops(struct pcm *pcm, int e, const char *fmt, ...) in oops() argument 297 vsnprintf(pcm->error, PCM_ERROR_MAX, fmt, ap); in oops() 299 sz = strlen(pcm->error); in oops() [all …]
|
D | tinycap.c | 199 struct pcm *pcm; in capture_sample() local 217 pcm = pcm_open(card, device, PCM_IN, &config); in capture_sample() 218 if (!pcm || !pcm_is_ready(pcm)) { in capture_sample() 220 pcm_get_error(pcm)); in capture_sample() 224 size = pcm_frames_to_bytes(pcm, pcm_get_buffer_size(pcm)); in capture_sample() 229 pcm_close(pcm); in capture_sample() 240 while (capturing && !pcm_read(pcm, buffer, size)) { in capture_sample() 254 frames = pcm_bytes_to_frames(pcm, bytes_read); in capture_sample() 256 pcm_close(pcm); in capture_sample()
|
/external/tinyalsa_new/include/tinyalsa/ |
D | pcm.h | 293 struct pcm; 295 struct pcm *pcm_open(unsigned int card, 300 struct pcm *pcm_open_by_name(const char *name, 304 int pcm_close(struct pcm *pcm); 306 int pcm_is_ready(const struct pcm *pcm); 308 unsigned int pcm_get_channels(const struct pcm *pcm); 310 const struct pcm_config * pcm_get_config(const struct pcm *pcm); 312 unsigned int pcm_get_rate(const struct pcm *pcm); 314 enum pcm_format pcm_get_format(const struct pcm *pcm); 316 int pcm_get_file_descriptor(const struct pcm *pcm); [all …]
|
/external/tinyalsa/include/tinyalsa/ |
D | asoundlib.h | 43 struct pcm; 182 struct pcm *pcm_open(unsigned int card, unsigned int device, 184 int pcm_close(struct pcm *pcm); 185 int pcm_is_ready(struct pcm *pcm); 219 int pcm_get_config(struct pcm *pcm, struct pcm_config *config); 220 int pcm_set_config(struct pcm *pcm, struct pcm_config *config); 223 const char *pcm_get_error(struct pcm *pcm); 233 unsigned int pcm_get_buffer_size(struct pcm *pcm); 234 unsigned int pcm_frames_to_bytes(struct pcm *pcm, unsigned int frames); 235 unsigned int pcm_bytes_to_frames(struct pcm *pcm, unsigned int bytes); [all …]
|
/external/llvm-project/clang/test/Modules/ |
D | rebuild.m | 5 // RUN: touch -m -a -t 201101010000 %t/Module.pcm 6 // RUN: cp %t/Module.pcm %t/Module.pcm.saved 7 // RUN: wc -c %t/Module.pcm > %t/Module.size.saved 11 // RUN: diff %t/Module.pcm %t/Module.pcm.saved 12 // RUN: cp %t/DependsOnModule.pcm %t/DependsOnModule.pcm.saved 15 // RUN: rm %t/Module.pcm 17 // RUN: touch -m -a -t 201101010000 %t/Module.pcm 18 // RUN: wc -c %t/Module.pcm > %t/Module.size 20 // RUN: cp %t/Module.pcm %t/Module.pcm.saved.2 24 // RUN: diff %t/Module.pcm %t/Module.pcm.saved.2 [all …]
|
D | Werror.m | 9 // RUN: cp %t/Module.pcm %t-saved/Module.pcm 14 // RUN: diff %t/Module.pcm %t-saved/Module.pcm 20 // RUN: not diff %t/Module.pcm %t-saved/Module.pcm 21 // RUN: cp %t/Module.pcm %t-saved/Module.pcm 27 // RUN: diff %t/Module.pcm %t-saved/Module.pcm 33 // RUN: not diff %t/Module.pcm %t-saved/Module.pcm 34 // RUN: cp %t/Module.pcm %t-saved/Module.pcm 42 // RUN-DISABLED: diff %t/Module.pcm %t-saved/Module.pcm 48 // RUN: cp %t/Module.pcm %t-saved/Module.pcm 52 // RUN: not diff %t/Module.pcm %t-saved/Module.pcm [all …]
|
D | Rmodule-import.m | 17 expected-remark-re{{building module 'A' as '{{.*[/\\]}}A.pcm'}} \ 19 expected-remark-re{{importing module 'A' from '{{.*[/\\]}}A.pcm'}} \ 20 expected-remark-re{{importing module 'B' into 'A' from '{{.*[/\\]}}B.pcm'}} \ 21 expected-remark-re{{importing module 'C' into 'B' from '{{.*[/\\]}}C.pcm'}} 26 // CHECK: remark: importing module 'C' from '{{.*[/\\]}}C.pcm' 28 // CHECK: remark: importing module 'B' from '{{.*[/\\]}}B.pcm' 29 // CHECK: remark: importing module 'C' into 'B' from '{{.*[/\\]}}C.pcm' 31 // CHECK: remark: importing module 'A' from '{{.*[/\\]}}A.pcm' 32 // CHECK: remark: importing module 'B' into 'A' from '{{.*[/\\]}}B.pcm' 33 // CHECK: remark: importing module 'C' into 'B' from '{{.*[/\\]}}C.pcm' [all …]
|
D | dependency-gen.modulemap | 4 …-pch -fmodules-strict-decluse %s -dependency-file - -MT implicit.pcm -o %t/implicit.pcm -fmodules-… 6 …h -fmodules-strict-decluse Inputs/dependency-gen-base.modulemap -o %t/base.pcm -fmodule-map-file-h… 7 …fmodules-strict-decluse -fmodule-file=%t/base.pcm %s -dependency-file - -MT explicit.pcm -o %t/exp… 9 …include Inputs/dependency-gen.h -x c++ /dev/null -fmodule-file=%t/explicit.pcm -MT main.o -fsyntax… 18 // referenced by the .pcm are also dependencies of this build. 29 // dependencies of the explicitly-specified .pcm input). 31 // EXPLICIT: {{^}}explicit.pcm: 35 // EXPLICIT: base.pcm 41 // EXPLICIT-USE-NOT: base.pcm 42 // EXPLICIT-USE: explicit.pcm [all …]
|
D | validate-system-headers.m | 9 // RUN: cp %t/ModuleCache/Foo.pcm %t/Foo.pcm.saved 13 // The pcm file in the cache should fail to validate. 16 // RUN: diff %t/ModuleCache/Foo.pcm %t/Foo.pcm.saved 21 // RUN: not diff %t/ModuleCache/Foo.pcm %t/Foo.pcm.saved 26 // RUN: cp %t/ModuleCache/Foo.pcm %t/Foo.pcm.saved 28 // RUN: diff %t/ModuleCache/Foo.pcm %t/Foo.pcm.saved 35 // RUN: diff %t/ModuleCache/Foo.pcm %t/Foo.pcm.saved 39 // RUN: not diff %t/ModuleCache/Foo.pcm %t/Foo.pcm.saved
|
D | path-resolution.modulemap | 12 // RUN: -fmodule-name="a" -o a.pcm a.modulemap 17 // RUN: -fmodule-name="b" -o b.pcm b.modulemap 25 // Compile a new module c in the newly generated tree that depends on b; c.pcm 27 // c.pcm. 34 // RUN: -fmodule-name="c" -fmodule-file=b.pcm -o c/c.pcm c/c.modulemap 44 // to first load b.pcm and a.pcm before c.pcm on the command line to trigger 51 // RUN: -fmodule-file=b.pcm -fmodule-file=a.pcm -fmodule-file=c/c.pcm \
|
/external/clang/test/Modules/ |
D | rebuild.m | 5 // RUN: touch -m -a -t 201101010000 %t/Module.pcm 6 // RUN: cp %t/Module.pcm %t/Module.pcm.saved 7 // RUN: wc -c %t/Module.pcm > %t/Module.size.saved 11 // RUN: diff %t/Module.pcm %t/Module.pcm.saved 12 // RUN: cp %t/DependsOnModule.pcm %t/DependsOnModule.pcm.saved 15 // RUN: rm %t/Module.pcm 17 // RUN: touch -m -a -t 201101010000 %t/Module.pcm 18 // RUN: wc -c %t/Module.pcm > %t/Module.size 20 // RUN: cp %t/Module.pcm %t/Module.pcm.saved.2 25 // RUN: diff %t/Module.pcm %t/Module.pcm.saved.2 [all …]
|
D | Werror.m | 9 // RUN: cp %t/Module.pcm %t-saved/Module.pcm 14 // RUN: diff %t/Module.pcm %t-saved/Module.pcm 20 // RUN: not diff %t/Module.pcm %t-saved/Module.pcm 21 // RUN: cp %t/Module.pcm %t-saved/Module.pcm 27 // RUN: diff %t/Module.pcm %t-saved/Module.pcm 33 // RUN: not diff %t/Module.pcm %t-saved/Module.pcm 34 // RUN: cp %t/Module.pcm %t-saved/Module.pcm 42 // RUN-DISABLED: diff %t/Module.pcm %t-saved/Module.pcm 48 // RUN: cp %t/Module.pcm %t-saved/Module.pcm 52 // RUN: not diff %t/Module.pcm %t-saved/Module.pcm [all …]
|
D | dependency-gen.modulemap | 4 …-pch -fmodules-strict-decluse %s -dependency-file - -MT implicit.pcm -o %t/implicit.pcm -fmodules-… 6 …h -fmodules-strict-decluse Inputs/dependency-gen-base.modulemap -o %t/base.pcm -fmodule-map-file-h… 7 …fmodules-strict-decluse -fmodule-file=%t/base.pcm %s -dependency-file - -MT explicit.pcm -o %t/exp… 9 …include Inputs/dependency-gen.h -x c++ /dev/null -fmodule-file=%t/explicit.pcm -MT main.o -fsyntax… 18 // referenced by the .pcm are also dependencies of this build. 29 // dependencies of the explicitly-specified .pcm input). 31 // EXPLICIT: {{^}}explicit.pcm: 35 // EXPLICIT: base.pcm 41 // EXPLICIT-USE-NOT: base.pcm 42 // EXPLICIT-USE: explicit.pcm [all …]
|
D | validate-system-headers.m | 9 // RUN: cp %t/ModuleCache/Foo.pcm %t/Foo.pcm.saved 13 // The pcm file in the cache should fail to validate. 16 // RUN: diff %t/ModuleCache/Foo.pcm %t/Foo.pcm.saved 21 // RUN: not diff %t/ModuleCache/Foo.pcm %t/Foo.pcm.saved 26 // RUN: cp %t/ModuleCache/Foo.pcm %t/Foo.pcm.saved 28 // RUN: diff %t/ModuleCache/Foo.pcm %t/Foo.pcm.saved 35 // RUN: diff %t/ModuleCache/Foo.pcm %t/Foo.pcm.saved 39 // RUN: not diff %t/ModuleCache/Foo.pcm %t/Foo.pcm.saved
|
D | add-remove-private.m | 8 // RUN: cp %t.mcp/AddRemovePrivate.pcm %t/with.pcm 13 // RUN: not diff %t.mcp/AddRemovePrivate.pcm %t/with.pcm 14 // RUN: cp %t.mcp/AddRemovePrivate.pcm %t/without.pcm 21 // RUN: not diff %t.mcp/AddRemovePrivate.pcm %t/without.pcm
|
D | prune.m | 17 // RUN: ls -R %t | grep ^Module.*pcm 18 // RUN: ls -R %t | grep DependsOnModule.*pcm 25 // RUN: ls -R %t | grep ^Module.*pcm 26 // RUN: ls -R %t | grep DependsOnModule.*pcm 31 // RUN: find %t -name DependsOnModule*.pcm | xargs touch -a -t 201101010000 34 // RUN: ls -R %t | grep ^Module.*pcm 35 // RUN: ls -R %t | grep DependsOnModule.*pcm 37 // Set both timestamp and DependsOnModule.pcm back beyond the cutoff. 40 // RUN: find %t -name DependsOnModule*.pcm | xargs touch -a -t 201101010000 43 // RUN: ls -R %t | grep ^Module.*pcm [all …]
|
/external/webrtc/modules/ |
D | BUILD.gn | 58 "../resources/audio_coding/testfile16kHz.pcm", 59 "../resources/audio_coding/testfile32kHz.pcm", 60 "../resources/audio_coding/teststereo32kHz.pcm", 111 "../resources/audio_coding/speech_mono_16kHz.pcm", 112 "../resources/audio_coding/speech_mono_32_48kHz.pcm", 113 "../resources/audio_coding/testfile16kHz.pcm", 114 "../resources/audio_coding/testfile32kHz.pcm", 115 "../resources/audio_coding/testfile_fake_stereo_32kHz.pcm", 116 "../resources/audio_coding/teststereo32kHz.pcm", 117 "../resources/audio_device/audio_short16.pcm", [all …]
|
/external/tinyalsa_new/examples/ |
D | pcm-readi.c | 23 struct pcm *pcm = pcm_open(card, device, flags, &config); in read_frames() local 24 if (pcm == NULL) { in read_frames() 27 } else if (!pcm_is_ready(pcm)){ in read_frames() 28 pcm_close(pcm); in read_frames() 33 unsigned int frame_size = pcm_frames_to_bytes(pcm, 1); in read_frames() 34 unsigned int frames_per_sec = pcm_get_rate(pcm); in read_frames() 39 pcm_close(pcm); in read_frames() 43 int read_count = pcm_readi(pcm, *frames, frames_per_sec); in read_frames() 45 size_t byte_count = pcm_frames_to_bytes(pcm, read_count); in read_frames() 47 pcm_close(pcm); in read_frames()
|
D | Makefile | 8 EXAMPLES += pcm-readi 9 EXAMPLES += pcm-writei 14 pcm-readi pcm-writei: LDLIBS+=-ldl 16 pcm-readi: pcm-readi.c -ltinyalsa 18 pcm-writei: pcm-writei.c -ltinyalsa
|
D | pcm-writei.c | 64 struct pcm * pcm = pcm_open(card, device, flags, &config); in write_frames() local 65 if (pcm == NULL) { in write_frames() 68 } else if (!pcm_is_ready(pcm)){ in write_frames() 69 pcm_close(pcm); in write_frames() 74 unsigned int frame_count = pcm_bytes_to_frames(pcm, byte_count); in write_frames() 76 int err = pcm_writei(pcm, frames, frame_count); in write_frames() 78 printf("error: %s\n", pcm_get_error(pcm)); in write_frames() 81 pcm_close(pcm); in write_frames()
|
/external/libopus/tests/ |
D | opus_encode_regressions.c | 69 static const short pcm[320] = in celt_ec_internal_error() local 108 err = opus_multistream_encode(enc, pcm, 320, data, 2460); in celt_ec_internal_error() 125 static const short pcm[160] = in celt_ec_internal_error() local 146 err = opus_multistream_encode(enc, pcm, 160, data, 2460); in celt_ec_internal_error() 163 static const short pcm[160] = in celt_ec_internal_error() local 184 err = opus_multistream_encode(enc, pcm, 160, data, 2460); in celt_ec_internal_error() 201 static const short pcm[160] = in celt_ec_internal_error() local 222 err = opus_multistream_encode(enc, pcm, 160, data, 2460); in celt_ec_internal_error() 239 static const short pcm[160] = in celt_ec_internal_error() local 258 err = opus_multistream_encode(enc, pcm, 160, data, 2460); in celt_ec_internal_error() [all …]
|
/external/tinyalsa_new/utils/ |
D | tinycap.c | 211 struct pcm *pcm; in capture_sample() local 228 pcm = pcm_open(card, device, PCM_IN, &config); in capture_sample() 229 if (!pcm || !pcm_is_ready(pcm)) { in capture_sample() 231 pcm_get_error(pcm)); in capture_sample() 235 size = pcm_frames_to_bytes(pcm, pcm_get_buffer_size(pcm)); in capture_sample() 239 pcm_close(pcm); in capture_sample() 248 bytes_per_frame = pcm_frames_to_bytes(pcm, 1); in capture_sample() 252 frames_read = pcm_readi(pcm, buffer, pcm_get_buffer_size(pcm)); in capture_sample() 264 pcm_close(pcm); in capture_sample()
|
/external/libopus/src/ |
D | opus_decoder.c | 221 opus_int32 len, opus_val16 *pcm, int frame_size, int decode_fec) in opus_decode_frame() argument 288 pcm[i] = 0; in opus_decode_frame() 298 int ret = opus_decode_frame(st, NULL, 0, pcm, IMIN(audiosize, F20), 0); in opus_decode_frame() 304 pcm += ret*st->channels; in opus_decode_frame() 366 pcm_ptr = pcm; in opus_decode_frame() 519 len, pcm, celt_frame_size, &dec, celt_accum); in opus_decode_frame() 525 pcm[i] = 0; in opus_decode_frame() 532 celt_decode_with_ec(celt_dec, silence, 2, pcm, F2_5, NULL, celt_accum); in opus_decode_frame() 540 pcm[i] = SAT16(ADD32(pcm[i], pcm_silk[i])); in opus_decode_frame() 543 pcm[i] = pcm[i] + (opus_val16)((1.f/32768.f)*pcm_silk[i]); in opus_decode_frame() [all …]
|
/external/flac/src/test_seeking/ |
D | main.c | 40 FLAC__int32 **pcm; member 105 static FLAC__bool read_pcm_(FLAC__int32 *pcm[], const char *rawfilename, const char *flacfilename) in read_pcm_() argument 157 if(0 == (pcm[i] = malloc(sizeof(FLAC__int32)*samples))) { in read_pcm_() 172 pcm[j][i] = c; in read_pcm_() 183 pcm[j][i] = value & 0x8000 ? 0xffff0000 | value : value; in read_pcm_() 212 if (dcd->pcm) { in write_callback_() 216 if (buffer[c][j] != dcd->pcm[c][i]) { in write_callback_() 217 …match at sample#%u(%u), channel=%u, expected %d, got %d\n", i, j, c, buffer[c][j], dcd->pcm[c][i]); in write_callback_() 269 …__off_t filesize, uint32_t count, FLAC__int64 total_samples, uint32_t read_mode, FLAC__int32 **pcm) in seek_barrage() argument 276 decoder_client_data.pcm = pcm; in seek_barrage() [all …]
|