/dports/net/freeswitch/freeswitch-1.10.3.-release/libs/spandsp/src/spandsp/ |
H A D | saturated.h | 144 if (famp > (float) INT16_MAX) in fsaturatef() 146 if (famp < (float) INT16_MIN) in fsaturatef() 148 return (int16_t) lrintf(famp); in fsaturatef() 165 if (famp > (float) INT16_MAX) in ffastsaturatef() 167 if (famp < (float) INT16_MIN) in ffastsaturatef() 187 if (famp > (float) INT16_MAX) in ffsaturatef() 189 if (famp < (float) INT16_MIN) in ffsaturatef() 191 return famp; in ffsaturatef() 198 if (famp > (double) INT16_MAX) in ffsaturate() 200 if (famp < (double) INT16_MIN) in ffsaturate() [all …]
|
/dports/comms/spandsp/spandsp-284fe91/src/spandsp/ |
H A D | saturated.h | 144 if (famp > (float) INT16_MAX) in fsaturatef() 146 if (famp < (float) INT16_MIN) in fsaturatef() 148 return (int16_t) lrintf(famp); in fsaturatef() 165 if (famp > (float) INT16_MAX) in ffastsaturatef() 167 if (famp < (float) INT16_MIN) in ffastsaturatef() 187 if (famp > (float) INT16_MAX) in ffsaturatef() 189 if (famp < (float) INT16_MIN) in ffsaturatef() 191 return famp; in ffsaturatef() 198 if (famp > (double) INT16_MAX) in ffsaturate() 200 if (famp < (double) INT16_MIN) in ffsaturate() [all …]
|
/dports/audio/ccaudio2/ccaudio2-2.2.0/src/ |
H A D | detect.cpp | 162 float famp; in putSamples() local 185 famp = amp[j]; in putSamples() 186 state->energy += famp*famp; in putSamples() 192 state->row_out[0].v3 = state->row_out[0].fac*state->row_out[0].v2 - v1 + famp; in putSamples() 196 state->col_out[0].v3 = state->col_out[0].fac*state->col_out[0].v2 - v1 + famp; in putSamples() 200 state->row_out[1].v3 = state->row_out[1].fac*state->row_out[1].v2 - v1 + famp; in putSamples() 204 state->col_out[1].v3 = state->col_out[1].fac*state->col_out[1].v2 - v1 + famp; in putSamples() 208 state->row_out[2].v3 = state->row_out[2].fac*state->row_out[2].v2 - v1 + famp; in putSamples() 212 state->col_out[2].v3 = state->col_out[2].fac*state->col_out[2].v2 - v1 + famp; in putSamples() 216 state->row_out[3].v3 = state->row_out[3].fac*state->row_out[3].v2 - v1 + famp; in putSamples() [all …]
|
/dports/net/freeswitch/freeswitch-1.10.3.-release/libs/spandsp/src/ |
H A D | modem_connect_tones.c | 466 float famp; in modem_connect_tones_rx() local 474 famp = amp[i]; in modem_connect_tones_rx() 483 notched = (int16_t) lfastrintf(famp); in modem_connect_tones_rx() 521 famp = amp[i]; in modem_connect_tones_rx() 536 famp = v1 + 0.1567596f*s->znotch_1 + s->znotch_2; in modem_connect_tones_rx() 539 notched = (int16_t) lfastrintf(famp); in modem_connect_tones_rx() 625 famp = amp[i]; in modem_connect_tones_rx() 631 famp = v1 + 0.351437f*s->znotch_1 + s->znotch_2; in modem_connect_tones_rx() 634 notched = (int16_t) lfastrintf(famp); in modem_connect_tones_rx() 663 famp = amp[i]; in modem_connect_tones_rx() [all …]
|
H A D | dtmf.c | 118 float famp; in dtmf_rx() local 123 float famp; in dtmf_rx() 148 famp = xamp; in dtmf_rx() 152 v1 = 0.98356f*famp + 1.8954426f*s->z350[0] - 0.9691396f*s->z350[1]; in dtmf_rx() 153 famp = v1 - 1.9251480f*s->z350[0] + s->z350[1]; in dtmf_rx() 157 v1 = 0.98456f*famp + 1.8529543f*s->z440[0] - 0.9691396f*s->z440[1]; in dtmf_rx() 158 famp = v1 - 1.8819938f*s->z440[0] + s->z440[1]; in dtmf_rx() 161 xamp = famp; in dtmf_rx()
|
H A D | v27ter_tx.c | 255 float famp; in v27ter_tx() 295 famp = x.re*z.re - x.im*z.im; in v27ter_tx() 297 amp[sample] = (int16_t) lfastrintf(famp*s->gain_4800); in v27ter_tx() 329 famp = x.re*z.re - x.im*z.im; in v27ter_tx() 331 amp[sample] = (int16_t) lfastrintf(famp*s->gain_2400); in v27ter_tx()
|
H A D | v29tx.c | 226 float famp; in v29_tx() 261 famp = x.re*z.re - x.im*z.im; in v29_tx() 263 amp[sample] = (int16_t) lfastrintf(famp*s->gain); in v29_tx()
|
/dports/comms/spandsp/spandsp-284fe91/src/ |
H A D | modem_connect_tones.c | 466 float famp; in modem_connect_tones_rx() local 474 famp = amp[i]; in modem_connect_tones_rx() 483 notched = (int16_t) lfastrintf(famp); in modem_connect_tones_rx() 521 famp = amp[i]; in modem_connect_tones_rx() 536 famp = v1 + 0.1567596f*s->znotch_1 + s->znotch_2; in modem_connect_tones_rx() 539 notched = (int16_t) lfastrintf(famp); in modem_connect_tones_rx() 625 famp = amp[i]; in modem_connect_tones_rx() 631 famp = v1 + 0.351437f*s->znotch_1 + s->znotch_2; in modem_connect_tones_rx() 634 notched = (int16_t) lfastrintf(famp); in modem_connect_tones_rx() 663 famp = amp[i]; in modem_connect_tones_rx() [all …]
|
H A D | dtmf.c | 118 float famp; in dtmf_rx() local 123 float famp; in dtmf_rx() 148 famp = xamp; in dtmf_rx() 152 v1 = 0.98356f*famp + 1.8954426f*s->z350[0] - 0.9691396f*s->z350[1]; in dtmf_rx() 153 famp = v1 - 1.9251480f*s->z350[0] + s->z350[1]; in dtmf_rx() 157 v1 = 0.98456f*famp + 1.8529543f*s->z440[0] - 0.9691396f*s->z440[1]; in dtmf_rx() 158 famp = v1 - 1.8819938f*s->z440[0] + s->z440[1]; in dtmf_rx() 161 xamp = famp; in dtmf_rx()
|
H A D | v27ter_tx.c | 255 float famp; in v27ter_tx() 295 famp = x.re*z.re - x.im*z.im; in v27ter_tx() 297 amp[sample] = (int16_t) lfastrintf(famp*s->gain_4800); in v27ter_tx() 329 famp = x.re*z.re - x.im*z.im; in v27ter_tx() 331 amp[sample] = (int16_t) lfastrintf(famp*s->gain_2400); in v27ter_tx()
|
H A D | v29tx.c | 226 float famp; in v29_tx() 261 famp = x.re*z.re - x.im*z.im; in v29_tx() 263 amp[sample] = (int16_t) lfastrintf(famp*s->gain); in v29_tx()
|
/dports/net/freeswitch/freeswitch-1.10.3.-release/libs/libteletone/src/ |
H A D | libteletone_detect.c | 222 float v1, famp; in teletone_multi_tone_detect() local 239 famp = sample_buffer[j]; in teletone_multi_tone_detect() 241 mt->energy += famp*famp; in teletone_multi_tone_detect() 246 mt->gs[x].v3 = (float)(mt->gs[x].fac * mt->gs[x].v2 - v1 + famp); in teletone_multi_tone_detect() 250 mt->gs2[x].v3 = (float)(mt->gs2[x].fac*mt->gs2[x].v2 - v1 + famp); in teletone_multi_tone_detect() 313 float famp; in teletone_dtmf_detect() local 334 famp = sample_buffer[j]; in teletone_dtmf_detect() 336 dtmf_detect_state->energy += famp*famp; in teletone_dtmf_detect() 341 …ut[x].v3 = (float)(dtmf_detect_state->row_out[x].fac*dtmf_detect_state->row_out[x].v2 - v1 + famp); in teletone_dtmf_detect() 345 …ut[x].v3 = (float)(dtmf_detect_state->col_out[x].fac*dtmf_detect_state->col_out[x].v2 - v1 + famp); in teletone_dtmf_detect() [all …]
|
/dports/net/freeswitch/freeswitch-1.10.3.-release/libs/freetdm/src/ |
H A D | libteletone_detect.c | 218 float v1, famp; in teletone_multi_tone_detect() local 235 famp = sample_buffer[j]; in teletone_multi_tone_detect() 237 mt->energy += famp*famp; in teletone_multi_tone_detect() 242 mt->gs[x].v3 = (float)(mt->gs[x].fac * mt->gs[x].v2 - v1 + famp); in teletone_multi_tone_detect() 246 mt->gs2[x].v3 = (float)(mt->gs2[x].fac*mt->gs2[x].v2 - v1 + famp); in teletone_multi_tone_detect() 309 float famp; in teletone_dtmf_detect() local 331 famp = sample_buffer[j]; in teletone_dtmf_detect() 333 dtmf_detect_state->energy += famp*famp; in teletone_dtmf_detect() 338 …ut[x].v3 = (float)(dtmf_detect_state->row_out[x].fac*dtmf_detect_state->row_out[x].v2 - v1 + famp); in teletone_dtmf_detect() 342 …ut[x].v3 = (float)(dtmf_detect_state->col_out[x].fac*dtmf_detect_state->col_out[x].v2 - v1 + famp); in teletone_dtmf_detect() [all …]
|
/dports/net/iaxmodem/iaxmodem-1.2.0/lib/spandsp/src/spandsp/ |
H A D | dc_restore.h | 102 static __inline__ int16_t fsaturatef(float famp) in fsaturatef() argument 104 if (famp > 32767.0) in fsaturatef() 106 if (famp < -32768.0) in fsaturatef() 108 return (int16_t) rintf(famp); in fsaturatef()
|
/dports/net/h323plus/h323plus-1_27_2/plugins/audio/G722/VoIPCodecs/ |
H A D | dc_restore.h | 131 static __inline__ int16_t fsaturatef(float famp) in fsaturatef() argument 133 if (famp > 32767.0) in fsaturatef() 135 if (famp < -32768.0) in fsaturatef() 137 return (int16_t) rintf(famp); in fsaturatef()
|
/dports/net/opal/opal-3.10.10/plugins/audio/G722/VoIPCodecs/ |
H A D | dc_restore.h | 131 static __inline__ int16_t fsaturatef(float famp) in fsaturatef() argument 133 if (famp > 32767.0) in fsaturatef() 135 if (famp < -32768.0) in fsaturatef() 137 return (int16_t) rintf(famp); in fsaturatef()
|
/dports/net/iaxmodem/iaxmodem-1.2.0/lib/spandsp/src/ |
H A D | modem_connect_tones.c | 322 float famp; in modem_connect_tones_rx() local 331 famp = amp[i]; in modem_connect_tones_rx() 332 v1 = 0.792928f*famp + 1.0018744927985f*s->z1 - 0.54196833412465f*s->z2; in modem_connect_tones_rx() 333 famp = v1 - 1.2994747954630f*s->z1 + s->z2; in modem_connect_tones_rx() 336 notched = (int16_t) lrintf(famp); in modem_connect_tones_rx() 377 famp = amp[i]; in modem_connect_tones_rx() 378 v1 = 0.76000f*famp - 0.1183852f*s->z1 - 0.5104039f*s->z2; in modem_connect_tones_rx() 379 famp = v1 + 0.1567596f*s->z1 + s->z2; in modem_connect_tones_rx() 382 notched = (int16_t) lrintf(famp); in modem_connect_tones_rx()
|
H A D | dtmf.c | 104 float famp; in dtmf_rx() local 109 float famp; in dtmf_rx() 135 famp = xamp; in dtmf_rx() 139 v1 = 0.98356f*famp + 1.8954426f*s->z350[0] - 0.9691396f*s->z350[1]; in dtmf_rx() 140 famp = v1 - 1.9251480f*s->z350[0] + s->z350[1]; in dtmf_rx() 144 v1 = 0.98456f*famp + 1.8529543f*s->z440[0] - 0.9691396f*s->z440[1]; in dtmf_rx() 145 famp = v1 - 1.8819938f*s->z440[0] + s->z440[1]; in dtmf_rx() 148 xamp = famp; in dtmf_rx()
|
H A D | v22bis_tx.c | 528 float famp; in v22bis_tx() local 551 famp = (x.re*z.re - x.im*z.im)*s->tx.gain; in v22bis_tx() 555 famp += dds_modf(&(s->tx.guard_phase), s->tx.guard_phase_rate, s->tx.guard_level, 0); in v22bis_tx() 558 amp[sample] = (int16_t) lrintf(famp); in v22bis_tx()
|
/dports/net/iaxmodem/iaxmodem-1.2.0/lib/spandsp/spandsp-sim/ |
H A D | test_utils.c | 110 float famp; in complexify() local 122 famp = 0.0f; in complexify() 128 famp += (s->history[k] - s->history[j])*hilbert_coeffs[i]; in complexify() 136 res.im = famp/HILBERT_GAIN; in complexify()
|
/dports/net/freeswitch/freeswitch-1.10.3.-release/src/mod/endpoints/mod_gsmopen/asterisk/ |
H A D | celliax_spandsp.c | 637 float famp; in dtmf_rx() local 661 famp = amp[j]; in dtmf_rx() 667 famp = v1 - 1.9251480f * s->z350_1 + s->z350_2; in dtmf_rx() 672 famp = v1 - 1.8819938f * s->z440_1 + s->z440_2; in dtmf_rx() 676 s->energy += famp * famp; in dtmf_rx() 681 s->row_out[0].v3 = s->row_out[0].fac * s->row_out[0].v2 - v1 + famp; in dtmf_rx() 685 s->col_out[0].v3 = s->col_out[0].fac * s->col_out[0].v2 - v1 + famp; in dtmf_rx() 689 s->row_out[1].v3 = s->row_out[1].fac * s->row_out[1].v2 - v1 + famp; in dtmf_rx() 693 s->col_out[1].v3 = s->col_out[1].fac * s->col_out[1].v2 - v1 + famp; in dtmf_rx() 697 s->row_out[2].v3 = s->row_out[2].fac * s->row_out[2].v2 - v1 + famp; in dtmf_rx() [all …]
|
/dports/audio/csound/csound-6.15.0/tests/soak/ |
H A D | pvsvoc.csd | 23 famp pvsanal asig, 1024, 256, 1024, 1 ;analyse in signal 25 ftps pvsvoc famp, fexc, 1, 1 ;cross it
|
/dports/net/freeswitch/freeswitch-1.10.3.-release/libs/spandsp/spandsp-sim/ |
H A D | test_utils.c | 134 float famp; in complexify() local 146 famp = 0.0f; in complexify() 152 famp += (s->history[k] - s->history[j])*hilbert_coeffs[i]; in complexify() 160 res.im = famp/HILBERT_GAIN; in complexify()
|
/dports/comms/spandsp/spandsp-284fe91/spandsp-sim/ |
H A D | test_utils.c | 134 float famp; in complexify() local 146 famp = 0.0f; in complexify() 152 famp += (s->history[k] - s->history[j])*hilbert_coeffs[i]; in complexify() 160 res.im = famp/HILBERT_GAIN; in complexify()
|
/dports/audio/snd/snd-21.2/ |
H A D | maxf.rb | 154 famp, ffreq, fdecay = ary 167 b[:pp3] = b[:pp2] * famp
|