diff options
Diffstat (limited to 'comms/spandsp-devel5/files/patch-src-spandsp-dc_restore.h')
-rw-r--r-- | comms/spandsp-devel5/files/patch-src-spandsp-dc_restore.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/comms/spandsp-devel5/files/patch-src-spandsp-dc_restore.h b/comms/spandsp-devel5/files/patch-src-spandsp-dc_restore.h index 2b4ea48bf832..dec6fcf8e048 100644 --- a/comms/spandsp-devel5/files/patch-src-spandsp-dc_restore.h +++ b/comms/spandsp-devel5/files/patch-src-spandsp-dc_restore.h @@ -3,14 +3,15 @@ $FreeBSD$ --- src/spandsp/dc_restore.h.orig +++ src/spandsp/dc_restore.h -@@ -109,5 +109,10 @@ - } - #endif +@@ -53,6 +53,11 @@ + clean_sample = sample - (dc_bias >> 15); + */ +#ifndef INT16_MAX +#define INT16_MAX 0x7fff +#define INT16_MIN (-0x7fff-1) +#endif + - #endif - /*- End of file ------------------------------------------------------------*/ + /*! + Zero DC restoration descriptor. This defines the working state for a single + instance of DC content filter. |