Home
last modified time | relevance | path

Searched refs:SAMPLES_PER_CHUNK (Results 1 – 25 of 48) sorted by relevance

12

/dports/net/freeswitch/freeswitch-1.10.3.-release/libs/spandsp/tests/
H A Dv18_tests.c46 #define SAMPLES_PER_CHUNK 160 macro
105 int16_t amp[2][SAMPLES_PER_CHUNK]; in basic_tests()
107 int16_t out_amp[2*SAMPLES_PER_CHUNK]; in basic_tests()
176 if (samples < SAMPLES_PER_CHUNK) in basic_tests()
179 samples = SAMPLES_PER_CHUNK; in basic_tests()
183 if (samples < SAMPLES_PER_CHUNK) in basic_tests()
186 samples = SAMPLES_PER_CHUNK; in basic_tests()
229 int16_t amp[2][SAMPLES_PER_CHUNK]; in test_misc_01()
330 int16_t amp[2][SAMPLES_PER_CHUNK]; in test_misc_02()
435 int16_t amp[2][SAMPLES_PER_CHUNK]; in test_misc_03()
[all …]
H A Ddds_tests.c52 #define SAMPLES_PER_CHUNK 8000 macro
61 int16_t buf[2*SAMPLES_PER_CHUNK]; in main()
82 for (i = 0; i < SAMPLES_PER_CHUNK; i++) in main()
88 if (outframes != SAMPLES_PER_CHUNK) in main()
102 for (i = 0; i < SAMPLES_PER_CHUNK; i++) in main()
108 if (outframes != SAMPLES_PER_CHUNK) in main()
124 for (i = 0; i < SAMPLES_PER_CHUNK; i++) in main()
130 if (outframes != SAMPLES_PER_CHUNK) in main()
144 for (i = 0; i < SAMPLES_PER_CHUNK; i++) in main()
150 if (outframes != SAMPLES_PER_CHUNK) in main()
[all …]
H A Dv8_tests.c44 #define SAMPLES_PER_CHUNK 160 macro
166 int16_t amp[SAMPLES_PER_CHUNK]; in v8_calls_v8_tests()
167 int16_t out_amp[2*SAMPLES_PER_CHUNK]; in v8_calls_v8_tests()
234 if (samples < SAMPLES_PER_CHUNK) in v8_calls_v8_tests()
238 samples = SAMPLES_PER_CHUNK; in v8_calls_v8_tests()
248 if (samples < SAMPLES_PER_CHUNK) in v8_calls_v8_tests()
252 samples = SAMPLES_PER_CHUNK; in v8_calls_v8_tests()
301 int16_t amp[SAMPLES_PER_CHUNK]; in non_v8_calls_v8_tests()
345 if (samples < SAMPLES_PER_CHUNK) in non_v8_calls_v8_tests()
416 int16_t amp[SAMPLES_PER_CHUNK]; in v8_calls_non_v8_tests()
[all …]
H A Dmodem_connect_tones_tests.c45 #define SAMPLES_PER_CHUNK 160 macro
336 for (i = 0; i < 20*SAMPLE_RATE; i += SAMPLES_PER_CHUNK) in main()
355 for (i = 0; i < 20*SAMPLE_RATE; i += SAMPLES_PER_CHUNK) in main()
375 for (i = 0; i < 20*SAMPLE_RATE; i += SAMPLES_PER_CHUNK) in main()
395 for (i = 0; i < 20*SAMPLE_RATE; i += SAMPLES_PER_CHUNK) in main()
415 for (i = 0; i < 20*SAMPLE_RATE; i += SAMPLES_PER_CHUNK) in main()
434 for (i = 0; i < 20*SAMPLE_RATE; i += SAMPLES_PER_CHUNK) in main()
756 for (i = 0; i < 8000; i += SAMPLES_PER_CHUNK) in main()
1278 memset(amp, 0, sizeof(int16_t)*SAMPLES_PER_CHUNK); in main()
1311 samples = SAMPLES_PER_CHUNK; in main()
[all …]
H A Dademco_contactid_tests.c46 #define SAMPLES_PER_CHUNK 160 macro
195 int16_t amp[SAMPLES_PER_CHUNK]; in end_to_end_tests()
196 int16_t sndfile_buf[2*SAMPLES_PER_CHUNK]; in end_to_end_tests()
233 for (j = samples; j < SAMPLES_PER_CHUNK; j++) in end_to_end_tests()
235 for (j = 0; j < SAMPLES_PER_CHUNK; j++) in end_to_end_tests()
242 for (j = samples; j < SAMPLES_PER_CHUNK; j++) in end_to_end_tests()
246 codec_munge(munge, amp, SAMPLES_PER_CHUNK); in end_to_end_tests()
247 for (j = 0; j < SAMPLES_PER_CHUNK; j++) in end_to_end_tests()
253 codec_munge(munge, amp, SAMPLES_PER_CHUNK); in end_to_end_tests()
254 ademco_contactid_sender_rx(sender, amp, SAMPLES_PER_CHUNK); in end_to_end_tests()
[all …]
H A Dt31_pseudo_terminal_tests.c67 #define SAMPLES_PER_CHUNK 160 macro
405 int16_t t30_amp[SAMPLES_PER_CHUNK]; in t30_tests()
406 int16_t t31_amp[SAMPLES_PER_CHUNK]; in t30_tests()
407 int16_t silence[SAMPLES_PER_CHUNK]; in t30_tests()
408 int16_t out_amp[2*SAMPLES_PER_CHUNK]; in t30_tests()
681 if (t30_len < SAMPLES_PER_CHUNK) in t30_tests()
684 t30_len = SAMPLES_PER_CHUNK; in t30_tests()
694 if (t31_len < SAMPLES_PER_CHUNK) in t30_tests()
697 t31_len = SAMPLES_PER_CHUNK; in t30_tests()
704 if (fax_rx(fax_state, t31_amp, SAMPLES_PER_CHUNK)) in t30_tests()
[all …]
H A Dt31_tests.c70 #define SAMPLES_PER_CHUNK 160 macro
508 int16_t t30_amp[SAMPLES_PER_CHUNK]; in t30_tests()
509 int16_t t31_amp[SAMPLES_PER_CHUNK]; in t30_tests()
510 int16_t silence[SAMPLES_PER_CHUNK]; in t30_tests()
511 int16_t out_amp[2*SAMPLES_PER_CHUNK]; in t30_tests()
808 if (t30_len < SAMPLES_PER_CHUNK) in t30_tests()
811 t30_len = SAMPLES_PER_CHUNK; in t30_tests()
821 if (t31_len < SAMPLES_PER_CHUNK) in t30_tests()
824 t31_len = SAMPLES_PER_CHUNK; in t30_tests()
831 if (fax_rx(fax_state, t31_amp, SAMPLES_PER_CHUNK)) in t30_tests()
[all …]
H A Ddata_modems_tests.c59 #define SAMPLES_PER_CHUNK 160 macro
140 int16_t mdm_amp[SAMPLES_PER_CHUNK]; in modem_tests()
144 int16_t silence[SAMPLES_PER_CHUNK]; in modem_tests()
145 int16_t out_amp[2*SAMPLES_PER_CHUNK]; in modem_tests()
219 mdm_len = data_modems_tx(data_modems_state[i], mdm_amp, SAMPLES_PER_CHUNK); in modem_tests()
220 if (mdm_len < SAMPLES_PER_CHUNK) in modem_tests()
222 vec_zeroi16(mdm_amp + mdm_len, SAMPLES_PER_CHUNK - mdm_len); in modem_tests()
223 mdm_len = SAMPLES_PER_CHUNK; in modem_tests()
236 outframes = sf_writef_short(wave_handle, out_amp, SAMPLES_PER_CHUNK); in modem_tests()
237 if (outframes != SAMPLES_PER_CHUNK) in modem_tests()
H A Dtsb85_tests.c70 #define SAMPLES_PER_CHUNK 160 macro
82 int16_t amp[SAMPLES_PER_CHUNK]; in exchange()
83 int16_t out_amp[2*SAMPLES_PER_CHUNK]; in exchange()
135 len = fax_tx(s->far_fax, amp, SAMPLES_PER_CHUNK); in exchange()
145 total_audio_time += SAMPLES_PER_CHUNK; in exchange()
160 len = faxtester_tx(s, amp, SAMPLES_PER_CHUNK); in exchange()
169 if (sf_writef_short(out_handle, out_amp, SAMPLES_PER_CHUNK) != SAMPLES_PER_CHUNK) in exchange()
/dports/comms/spandsp/spandsp-284fe91/tests/
H A Dv18_tests.c46 #define SAMPLES_PER_CHUNK 160 macro
105 int16_t amp[2][SAMPLES_PER_CHUNK]; in basic_tests()
107 int16_t out_amp[2*SAMPLES_PER_CHUNK]; in basic_tests()
176 if (samples < SAMPLES_PER_CHUNK) in basic_tests()
179 samples = SAMPLES_PER_CHUNK; in basic_tests()
183 if (samples < SAMPLES_PER_CHUNK) in basic_tests()
186 samples = SAMPLES_PER_CHUNK; in basic_tests()
229 int16_t amp[2][SAMPLES_PER_CHUNK]; in test_misc_01()
330 int16_t amp[2][SAMPLES_PER_CHUNK]; in test_misc_02()
435 int16_t amp[2][SAMPLES_PER_CHUNK]; in test_misc_03()
[all …]
H A Ddds_tests.c52 #define SAMPLES_PER_CHUNK 8000 macro
61 int16_t buf[2*SAMPLES_PER_CHUNK]; in main()
82 for (i = 0; i < SAMPLES_PER_CHUNK; i++) in main()
88 if (outframes != SAMPLES_PER_CHUNK) in main()
102 for (i = 0; i < SAMPLES_PER_CHUNK; i++) in main()
108 if (outframes != SAMPLES_PER_CHUNK) in main()
124 for (i = 0; i < SAMPLES_PER_CHUNK; i++) in main()
130 if (outframes != SAMPLES_PER_CHUNK) in main()
144 for (i = 0; i < SAMPLES_PER_CHUNK; i++) in main()
150 if (outframes != SAMPLES_PER_CHUNK) in main()
[all …]
H A Dv8_tests.c44 #define SAMPLES_PER_CHUNK 160 macro
166 int16_t amp[SAMPLES_PER_CHUNK]; in v8_calls_v8_tests()
167 int16_t out_amp[2*SAMPLES_PER_CHUNK]; in v8_calls_v8_tests()
234 if (samples < SAMPLES_PER_CHUNK) in v8_calls_v8_tests()
238 samples = SAMPLES_PER_CHUNK; in v8_calls_v8_tests()
248 if (samples < SAMPLES_PER_CHUNK) in v8_calls_v8_tests()
252 samples = SAMPLES_PER_CHUNK; in v8_calls_v8_tests()
301 int16_t amp[SAMPLES_PER_CHUNK]; in non_v8_calls_v8_tests()
345 if (samples < SAMPLES_PER_CHUNK) in non_v8_calls_v8_tests()
416 int16_t amp[SAMPLES_PER_CHUNK]; in v8_calls_non_v8_tests()
[all …]
H A Dmodem_connect_tones_tests.c45 #define SAMPLES_PER_CHUNK 160 macro
336 for (i = 0; i < 20*SAMPLE_RATE; i += SAMPLES_PER_CHUNK) in main()
355 for (i = 0; i < 20*SAMPLE_RATE; i += SAMPLES_PER_CHUNK) in main()
375 for (i = 0; i < 20*SAMPLE_RATE; i += SAMPLES_PER_CHUNK) in main()
395 for (i = 0; i < 20*SAMPLE_RATE; i += SAMPLES_PER_CHUNK) in main()
415 for (i = 0; i < 20*SAMPLE_RATE; i += SAMPLES_PER_CHUNK) in main()
434 for (i = 0; i < 20*SAMPLE_RATE; i += SAMPLES_PER_CHUNK) in main()
756 for (i = 0; i < 8000; i += SAMPLES_PER_CHUNK) in main()
1278 memset(amp, 0, sizeof(int16_t)*SAMPLES_PER_CHUNK); in main()
1311 samples = SAMPLES_PER_CHUNK; in main()
[all …]
H A Dademco_contactid_tests.c46 #define SAMPLES_PER_CHUNK 160 macro
195 int16_t amp[SAMPLES_PER_CHUNK]; in end_to_end_tests()
196 int16_t sndfile_buf[2*SAMPLES_PER_CHUNK]; in end_to_end_tests()
233 for (j = samples; j < SAMPLES_PER_CHUNK; j++) in end_to_end_tests()
235 for (j = 0; j < SAMPLES_PER_CHUNK; j++) in end_to_end_tests()
242 for (j = samples; j < SAMPLES_PER_CHUNK; j++) in end_to_end_tests()
246 codec_munge(munge, amp, SAMPLES_PER_CHUNK); in end_to_end_tests()
247 for (j = 0; j < SAMPLES_PER_CHUNK; j++) in end_to_end_tests()
253 codec_munge(munge, amp, SAMPLES_PER_CHUNK); in end_to_end_tests()
254 ademco_contactid_sender_rx(sender, amp, SAMPLES_PER_CHUNK); in end_to_end_tests()
[all …]
H A Dt31_tests.c70 #define SAMPLES_PER_CHUNK 160 macro
508 int16_t t30_amp[SAMPLES_PER_CHUNK]; in t30_tests()
509 int16_t t31_amp[SAMPLES_PER_CHUNK]; in t30_tests()
510 int16_t silence[SAMPLES_PER_CHUNK]; in t30_tests()
511 int16_t out_amp[2*SAMPLES_PER_CHUNK]; in t30_tests()
808 if (t30_len < SAMPLES_PER_CHUNK) in t30_tests()
811 t30_len = SAMPLES_PER_CHUNK; in t30_tests()
821 if (t31_len < SAMPLES_PER_CHUNK) in t30_tests()
824 t31_len = SAMPLES_PER_CHUNK; in t30_tests()
831 if (fax_rx(fax_state, t31_amp, SAMPLES_PER_CHUNK)) in t30_tests()
[all …]
H A Dt31_pseudo_terminal_tests.c67 #define SAMPLES_PER_CHUNK 160 macro
405 int16_t t30_amp[SAMPLES_PER_CHUNK]; in t30_tests()
406 int16_t t31_amp[SAMPLES_PER_CHUNK]; in t30_tests()
407 int16_t silence[SAMPLES_PER_CHUNK]; in t30_tests()
408 int16_t out_amp[2*SAMPLES_PER_CHUNK]; in t30_tests()
681 if (t30_len < SAMPLES_PER_CHUNK) in t30_tests()
684 t30_len = SAMPLES_PER_CHUNK; in t30_tests()
694 if (t31_len < SAMPLES_PER_CHUNK) in t30_tests()
697 t31_len = SAMPLES_PER_CHUNK; in t30_tests()
704 if (fax_rx(fax_state, t31_amp, SAMPLES_PER_CHUNK)) in t30_tests()
[all …]
H A Ddata_modems_tests.c59 #define SAMPLES_PER_CHUNK 160 macro
140 int16_t mdm_amp[SAMPLES_PER_CHUNK]; in modem_tests()
144 int16_t silence[SAMPLES_PER_CHUNK]; in modem_tests()
145 int16_t out_amp[2*SAMPLES_PER_CHUNK]; in modem_tests()
219 mdm_len = data_modems_tx(data_modems_state[i], mdm_amp, SAMPLES_PER_CHUNK); in modem_tests()
220 if (mdm_len < SAMPLES_PER_CHUNK) in modem_tests()
222 vec_zeroi16(mdm_amp + mdm_len, SAMPLES_PER_CHUNK - mdm_len); in modem_tests()
223 mdm_len = SAMPLES_PER_CHUNK; in modem_tests()
236 outframes = sf_writef_short(wave_handle, out_amp, SAMPLES_PER_CHUNK); in modem_tests()
237 if (outframes != SAMPLES_PER_CHUNK) in modem_tests()
H A Dtsb85_tests.c70 #define SAMPLES_PER_CHUNK 160 macro
82 int16_t amp[SAMPLES_PER_CHUNK]; in exchange()
83 int16_t out_amp[2*SAMPLES_PER_CHUNK]; in exchange()
135 len = fax_tx(s->far_fax, amp, SAMPLES_PER_CHUNK); in exchange()
145 total_audio_time += SAMPLES_PER_CHUNK; in exchange()
160 len = faxtester_tx(s, amp, SAMPLES_PER_CHUNK); in exchange()
169 if (sf_writef_short(out_handle, out_amp, SAMPLES_PER_CHUNK) != SAMPLES_PER_CHUNK) in exchange()
/dports/net/iaxmodem/iaxmodem-1.2.0/lib/spandsp/tests/
H A Ddds_tests.c53 #define SAMPLES_PER_CHUNK 8000 macro
62 int16_t buf[2*SAMPLES_PER_CHUNK]; in main()
94 for (i = 0; i < SAMPLES_PER_CHUNK; i++) in main()
103 if (outframes != SAMPLES_PER_CHUNK) in main()
117 for (i = 0; i < SAMPLES_PER_CHUNK; i++) in main()
126 if (outframes != SAMPLES_PER_CHUNK) in main()
142 for (i = 0; i < SAMPLES_PER_CHUNK; i++) in main()
151 if (outframes != SAMPLES_PER_CHUNK) in main()
165 for (i = 0; i < SAMPLES_PER_CHUNK; i++) in main()
174 if (outframes != SAMPLES_PER_CHUNK) in main()
[all …]
H A Dt38_gateway_tests.c70 #define SAMPLES_PER_CHUNK 160 macro
237 int16_t silence[SAMPLES_PER_CHUNK]; in main()
238 int16_t t30_amp_a[SAMPLES_PER_CHUNK]; in main()
239 int16_t t38_amp_a[SAMPLES_PER_CHUNK]; in main()
241 int16_t t38_amp_b[SAMPLES_PER_CHUNK]; in main()
243 int16_t t30_amp_b[SAMPLES_PER_CHUNK]; in main()
244 int16_t out_amp[SAMPLES_PER_CHUNK*4]; in main()
480 if (t30_len_a < SAMPLES_PER_CHUNK) in main()
483 t30_len_a = SAMPLES_PER_CHUNK; in main()
503 if (t38_len_a < SAMPLES_PER_CHUNK) in main()
[all …]
H A Dt38_terminal_to_gateway_tests.c70 #define SAMPLES_PER_CHUNK 160 macro
214 int16_t t38_amp_b[SAMPLES_PER_CHUNK]; in main()
215 int16_t t30_amp_b[SAMPLES_PER_CHUNK]; in main()
216 int16_t out_amp[2*SAMPLES_PER_CHUNK]; in main()
417 t38_terminal_send_timeout(&t38_state_a, SAMPLES_PER_CHUNK); in main()
425 if (t30_len_b < SAMPLES_PER_CHUNK) in main()
428 t30_len_b = SAMPLES_PER_CHUNK; in main()
447 if (t38_len_b < SAMPLES_PER_CHUNK) in main()
450 t38_len_b = SAMPLES_PER_CHUNK; in main()
458 if (fax_rx(&fax_state_b, t38_amp_b, SAMPLES_PER_CHUNK)) in main()
[all …]
H A Dt38_gateway_to_terminal_tests.c70 #define SAMPLES_PER_CHUNK 160 macro
214 int16_t t38_amp_a[SAMPLES_PER_CHUNK]; in main()
215 int16_t t30_amp_a[SAMPLES_PER_CHUNK]; in main()
216 int16_t out_amp[2*SAMPLES_PER_CHUNK]; in main()
418 t38_terminal_send_timeout(&t38_state_b, SAMPLES_PER_CHUNK); in main()
426 if (t30_len_a < SAMPLES_PER_CHUNK) in main()
429 t30_len_a = SAMPLES_PER_CHUNK; in main()
448 if (t38_len_a < SAMPLES_PER_CHUNK) in main()
451 t38_len_a = SAMPLES_PER_CHUNK; in main()
459 if (fax_rx(&fax_state_a, t38_amp_a, SAMPLES_PER_CHUNK)) in main()
[all …]
H A Dv8_tests.c48 #define SAMPLES_PER_CHUNK 160 macro
84 int16_t amp[SAMPLES_PER_CHUNK]; in main()
85 int16_t out_amp[2*SAMPLES_PER_CHUNK]; in main()
169 samples = v8_tx(&v8_caller, amp, SAMPLES_PER_CHUNK); in main()
170 if (samples < SAMPLES_PER_CHUNK) in main()
172 memset(amp + samples, 0, sizeof(int16_t)*(SAMPLES_PER_CHUNK - samples)); in main()
173 samples = SAMPLES_PER_CHUNK; in main()
179 samples = v8_tx(&v8_answerer, amp, SAMPLES_PER_CHUNK); in main()
180 if (samples < SAMPLES_PER_CHUNK) in main()
182 memset(amp + samples, 0, sizeof(int16_t)*(SAMPLES_PER_CHUNK - samples)); in main()
[all …]
H A Dmodem_connect_tones_tests.c46 #define SAMPLES_PER_CHUNK 160 macro
266 for (i = 0; i < 20*SAMPLE_RATE; i += SAMPLES_PER_CHUNK) in main()
288 for (i = 0; i < 20*SAMPLE_RATE; i += SAMPLES_PER_CHUNK) in main()
311 for (i = 0; i < 20*SAMPLE_RATE; i += SAMPLES_PER_CHUNK) in main()
334 for (i = 0; i < 20*SAMPLE_RATE; i += SAMPLES_PER_CHUNK) in main()
385 for (i = 0; i < 10*SAMPLE_RATE; i += SAMPLES_PER_CHUNK) in main()
739 for (i = 0; i < 2*SAMPLE_RATE; i += SAMPLES_PER_CHUNK) in main()
741 samples = fsk_tx(&preamble_tx, amp, SAMPLES_PER_CHUNK); in main()
745 for (i = 0; i < SAMPLE_RATE/10; i += SAMPLES_PER_CHUNK) in main()
747 memset(amp, 0, sizeof(int16_t)*SAMPLES_PER_CHUNK); in main()
[all …]
H A Dfax_tests.c46 #define SAMPLES_PER_CHUNK 160 macro
57 int16_t amp[SAMPLES_PER_CHUNK];
222 int16_t silence[SAMPLES_PER_CHUNK]; in main()
223 int16_t out_amp[2*SAMPLES_PER_CHUNK]; in main()
452 mc->len = fax_tx(&mc->fax, mc->amp, SAMPLES_PER_CHUNK); in main()
454 mc->total_audio_time += SAMPLES_PER_CHUNK; in main()
460 if (mc->len < SAMPLES_PER_CHUNK) in main()
463 mc->len = SAMPLES_PER_CHUNK; in main()
475 if (machines[j ^ 1].len < SAMPLES_PER_CHUNK) in main()
493 if (fax_rx(&mc->fax, machines[j ^ 1].amp, SAMPLES_PER_CHUNK)) in main()
[all …]

12