|
|
b26bdb |
diff -up libsndfile-1.0.25/src/gsm610.c~ libsndfile-1.0.25/src/gsm610.c
|
|
|
b26bdb |
--- libsndfile-1.0.25/src/gsm610.c~ 2011-01-19 12:12:14.000000000 +0200
|
|
|
b26bdb |
+++ libsndfile-1.0.25/src/gsm610.c 2011-11-12 02:05:23.385054757 +0200
|
|
|
b26bdb |
@@ -27,7 +27,7 @@
|
|
|
b26bdb |
#include "sfendian.h"
|
|
|
b26bdb |
#include "common.h"
|
|
|
b26bdb |
#include "wav_w64.h"
|
|
|
b26bdb |
-#include "GSM610/gsm.h"
|
|
|
b26bdb |
+#include <gsm.h>
|
|
|
b26bdb |
|
|
|
b26bdb |
#define GSM610_BLOCKSIZE 33
|
|
|
b26bdb |
#define GSM610_SAMPLES 160
|
|
|
b26bdb |
@@ -388,7 +388,8 @@ gsm610_seek (SF_PRIVATE *psf, int UNUSED
|
|
|
b26bdb |
psf_fseek (psf, psf->dataoffset, SEEK_SET) ;
|
|
|
b26bdb |
pgsm610->blockcount = 0 ;
|
|
|
b26bdb |
|
|
|
b26bdb |
- gsm_init (pgsm610->gsm_data) ;
|
|
|
b26bdb |
+ gsm_destroy (pgsm610->gsm_data) ;
|
|
|
b26bdb |
+ pgsm610->gsm_data = gsm_create () ;
|
|
|
b26bdb |
if ((SF_CONTAINER (psf->sf.format)) == SF_FORMAT_WAV ||
|
|
|
b26bdb |
(SF_CONTAINER (psf->sf.format)) == SF_FORMAT_W64)
|
|
|
b26bdb |
gsm_option (pgsm610->gsm_data, GSM_OPT_WAV49, &true_flag) ;
|
|
|
b26bdb |
diff -up libsndfile-1.0.25/src/Makefile.am~ libsndfile-1.0.25/src/Makefile.am
|
|
|
b26bdb |
--- libsndfile-1.0.25/src/Makefile.am~ 2011-07-07 12:40:25.000000000 +0300
|
|
|
b26bdb |
+++ libsndfile-1.0.25/src/Makefile.am 2011-11-12 01:46:19.760807068 +0200
|
|
|
b26bdb |
@@ -8,7 +8,7 @@ lib_LTLIBRARIES = libsndfile.la
|
|
|
b26bdb |
include_HEADERS = sndfile.hh
|
|
|
b26bdb |
nodist_include_HEADERS = sndfile.h
|
|
|
b26bdb |
|
|
|
b26bdb |
-noinst_LTLIBRARIES = GSM610/libgsm.la G72x/libg72x.la libcommon.la
|
|
|
b26bdb |
+noinst_LTLIBRARIES = G72x/libg72x.la libcommon.la
|
|
|
b26bdb |
|
|
|
b26bdb |
OS_SPECIFIC_CFLAGS = @OS_SPECIFIC_CFLAGS@
|
|
|
b26bdb |
OS_SPECIFIC_LINKS = @OS_SPECIFIC_LINKS@
|
|
|
b26bdb |
@@ -49,7 +49,7 @@ endif
|
|
|
b26bdb |
libsndfile_la_LDFLAGS = -no-undefined -version-info @SHARED_VERSION_INFO@ @SHLIB_VERSION_ARG@
|
|
|
b26bdb |
libsndfile_la_SOURCES = $(FILESPECIFIC) $(noinst_HEADERS)
|
|
|
b26bdb |
nodist_libsndfile_la_SOURCES = $(nodist_include_HEADERS)
|
|
|
b26bdb |
-libsndfile_la_LIBADD = libcommon.la GSM610/libgsm.la G72x/libg72x.la \
|
|
|
b26bdb |
+libsndfile_la_LIBADD = libcommon.la -lgsm G72x/libg72x.la \
|
|
|
b26bdb |
@EXTERNAL_LIBS@ -lm
|
|
|
b26bdb |
|
|
|
b26bdb |
libcommon_la_SOURCES = $(COMMON)
|
|
|
b26bdb |
@@ -57,12 +57,6 @@ libcommon_la_SOURCES = $(COMMON)
|
|
|
b26bdb |
#======================================================================
|
|
|
b26bdb |
# Subdir libraries.
|
|
|
b26bdb |
|
|
|
b26bdb |
-GSM610_libgsm_la_SOURCES = GSM610/config.h GSM610/gsm.h GSM610/gsm610_priv.h \
|
|
|
b26bdb |
- GSM610/add.c GSM610/code.c GSM610/decode.c GSM610/gsm_create.c \
|
|
|
b26bdb |
- GSM610/gsm_decode.c GSM610/gsm_destroy.c GSM610/gsm_encode.c \
|
|
|
b26bdb |
- GSM610/gsm_option.c GSM610/long_term.c GSM610/lpc.c GSM610/preprocess.c \
|
|
|
b26bdb |
- GSM610/rpe.c GSM610/short_term.c GSM610/table.c
|
|
|
b26bdb |
-
|
|
|
b26bdb |
G72x_libg72x_la_SOURCES = $(COMMON)G72x/g72x.h G72x/g72x_priv.h \
|
|
|
b26bdb |
G72x/g721.c G72x/g723_16.c G72x/g723_24.c G72x/g723_40.c G72x/g72x.c
|
|
|
b26bdb |
|