mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 00:22:35 +00:00
removed a saturate16 from spandsp that was causing problems
fixed a typo in the MSVC inttypes.h file for spandsp
This commit is contained in:
parent
3e30434a0c
commit
6bd146d8dc
@ -19,29 +19,44 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef __int8 __int8_t;
|
typedef __int8 __int8_t;
|
||||||
typedef __int16 __int16_t;
|
typedef __int16 __int16_t;
|
||||||
typedef __int32 __int32_t;
|
typedef __int32 __int32_t;
|
||||||
typedef __int64 __int64_t;
|
typedef __int64 __int64_t;
|
||||||
|
|
||||||
typedef unsigned __int8 uint8_t;
|
typedef unsigned __int8 uint8_t;
|
||||||
typedef unsigned __int16 uint16_t;
|
typedef unsigned __int16 uint16_t;
|
||||||
typedef unsigned __int32 uint32_t;
|
typedef unsigned __int32 uint32_t;
|
||||||
typedef unsigned __int64 uint64_t;
|
typedef unsigned __int64 uint64_t;
|
||||||
typedef __int8 int8_t;
|
typedef __int8 int8_t;
|
||||||
typedef __int16 int16_t;
|
typedef __int16 int16_t;
|
||||||
typedef __int32 int32_t;
|
typedef __int32 int32_t;
|
||||||
typedef __int64 int64_t;
|
typedef __int64 int64_t;
|
||||||
|
|
||||||
#define INT16_MAX 0x7FFF
|
|
||||||
#define INT16_MIN (-INT16_MAX - 1)
|
|
||||||
|
|
||||||
#if !defined(INFINITY)
|
#if !defined(INFINITY)
|
||||||
#define INFINITY 0x7FFFFFFF
|
#define INFINITY 0x7FFFFFFF
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(UINT8_MAX)
|
||||||
|
#define UINT8_MAX 0xFF
|
||||||
|
#endif
|
||||||
|
#if !defined(UINT16_MAX)
|
||||||
|
#define UINT16_MAX 0xFFFF
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if !defined(INT16_MAX)
|
||||||
|
#define INT16_MAX 0x7FFF
|
||||||
|
#endif
|
||||||
|
#if !defined(INT16_MIN)
|
||||||
|
#define INT16_MIN (-INT16_MAX - 1)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if !defined(INT32_MAX)
|
||||||
#define INT32_MAX (2147483647)
|
#define INT32_MAX (2147483647)
|
||||||
|
#endif
|
||||||
|
#if !defined(INT32_MIN)
|
||||||
#define INT32_MIN (-2147483647 - 1)
|
#define INT32_MIN (-2147483647 - 1)
|
||||||
|
#endif
|
||||||
|
|
||||||
#define PRId8 "d"
|
#define PRId8 "d"
|
||||||
#define PRId16 "d"
|
#define PRId16 "d"
|
||||||
|
@ -46,7 +46,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
#undef SPANDSP_USE_FIXED_POINT
|
|
||||||
#include "spandsp/telephony.h"
|
#include "spandsp/telephony.h"
|
||||||
#include "spandsp/fast_convert.h"
|
#include "spandsp/fast_convert.h"
|
||||||
#include "spandsp/dc_restore.h"
|
#include "spandsp/dc_restore.h"
|
||||||
@ -575,7 +574,7 @@ SPAN_DECLARE(int) sig_tone_rx(sig_tone_rx_state_t *s, int16_t amp[], int len)
|
|||||||
if ((s->current_rx_tone & SIG_TONE_RX_PASSTHROUGH))
|
if ((s->current_rx_tone & SIG_TONE_RX_PASSTHROUGH))
|
||||||
{
|
{
|
||||||
if ((s->current_rx_tone & SIG_TONE_RX_FILTER_TONE) || s->notch_insertion_timeout)
|
if ((s->current_rx_tone & SIG_TONE_RX_FILTER_TONE) || s->notch_insertion_timeout)
|
||||||
amp[i] = saturate16(notched_signal[0]);
|
amp[i] = saturate(notched_signal[0]);
|
||||||
/*endif*/
|
/*endif*/
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user