shithub: sox

Download patch

ref: f31c7d7278764124164294fee84c4c9c00a9ab50
parent: 1369ed69529c6e83b67f406bf8f15bf82f0197be
author: cbagwell <cbagwell>
date: Sun Jan 28 21:58:32 EST 2007

Add back in -D options to document whats available. Also,
we need the WAV option.

--- a/src/libgsm/Makefile.am
+++ b/src/libgsm/Makefile.am
@@ -1,4 +1,30 @@
-AM_CFLAGS = $(SASR)
+SASR    = -DSASR
+######### Define SASR if >> is a signed arithmetic shift (-1 >> 1 == -1)
+
+MULHACK = -DUSE_FLOAT_MUL
+######### Define this if your host multiplies floats faster than integers,
+######### e.g. on a SPARCstation.
+
+FAST    = -DFAST
+######### Define together with USE_FLOAT_MUL to enable the GSM library's
+######### approximation option for incorrect, but good-enough results.
+
+# LTP_CUT       = -DLTP_CUT
+LTP_CUT =
+######### Define to enable the GSM library's long-term correlation 
+######### approximation option---faster, but worse; works for
+######### both integer and floating point multiplications.
+######### This flag is still in the experimental stage.
+
+WAV49   = -DWAV49
+#WAV49  =
+######### Define to enable the GSM library's option to pack GSM frames 
+######### in the style used by the WAV #49 format.  If you want to write
+######### a tool that produces .WAV files which contain GSM-encoded data,
+######### define this, and read about the GSM_OPT_WAV49 option in the
+######### manual page on gsm_option(3).
+
+AM_CFLAGS = $(SASR) $(MULHAC) $(FAST) $(LTP_CUT) $(WAV49) 
 
 noinst_LTLIBRARIES = libgsm.la
 noinst_HEADERS = gsm.h