aboutsummaryrefslogtreecommitdiff
path: root/celt/arch.h
diff options
context:
space:
mode:
Diffstat (limited to 'celt/arch.h')
-rw-r--r--celt/arch.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/celt/arch.h b/celt/arch.h
index 05e434b9..1615af39 100644
--- a/celt/arch.h
+++ b/celt/arch.h
@@ -101,6 +101,9 @@ typedef opus_val32 celt_ener;
#define Q15ONE 32767
#define SIG_SHIFT 12
+/* Safe saturation value for 32-bit signals. Should be less than
+ 2^31*(1-0.85) to avoid blowing up on DC at deemphasis.*/
+#define SIG_SAT (300000000)
#define NORM_SCALING 16384