mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
Fix PLC for BSD (bug #2532)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5211 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -35,8 +35,12 @@
|
|||||||
#ifdef SOLARIS
|
#ifdef SOLARIS
|
||||||
#include <sys/int_types.h>
|
#include <sys/int_types.h>
|
||||||
#else
|
#else
|
||||||
|
#ifdef __FreeBSD__
|
||||||
|
#include <inttypes.h>
|
||||||
|
#else
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/*! \page plc_page Packet loss concealment
|
/*! \page plc_page Packet loss concealment
|
||||||
\section plc_page_sec_1 What does it do?
|
\section plc_page_sec_1 What does it do?
|
||||||
|
6
plc.c
6
plc.c
@@ -33,7 +33,6 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdint.h>
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
#include <asterisk/plc.h>
|
#include <asterisk/plc.h>
|
||||||
@@ -45,6 +44,11 @@
|
|||||||
#define TRUE (!FALSE)
|
#define TRUE (!FALSE)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(INT16_MAX)
|
||||||
|
#define INT16_MAX (32767)
|
||||||
|
#define INT16_MIN (-32767-1)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* We do a straight line fade to zero volume in 50ms when we are filling in for missing data. */
|
/* We do a straight line fade to zero volume in 50ms when we are filling in for missing data. */
|
||||||
#define ATTENUATION_INCREMENT 0.0025 /* Attenuation per sample */
|
#define ATTENUATION_INCREMENT 0.0025 /* Attenuation per sample */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user