提交 dfc1f5d2 authored 作者: Michael Jerris's avatar Michael Jerris
上级 97d2584d
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
## along with this program; if not, write to the Free Software ## along with this program; if not, write to the Free Software
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
## ##
## $Id: Makefile.am,v 1.1.1.1 2009/11/19 12:10:48 steveu Exp $ ## $Id: Makefile.am,v 1.2 2009/11/21 17:19:22 steveu Exp $
AM_CFLAGS = $(COMP_VENDOR_CFLAGS) AM_CFLAGS = $(COMP_VENDOR_CFLAGS)
AM_LDFLAGS = $(COMP_VENDOR_LDFLAGS) AM_LDFLAGS = $(COMP_VENDOR_LDFLAGS)
...@@ -26,6 +26,7 @@ noinst_SCRIPTS = broadvoice.spec ...@@ -26,6 +26,7 @@ noinst_SCRIPTS = broadvoice.spec
MAINTAINERCLEANFILES = Makefile.in MAINTAINERCLEANFILES = Makefile.in
EXTRA_DIST = autogen.sh \ EXTRA_DIST = autogen.sh \
broadvoice.pc \
broadvoice.spec \ broadvoice.spec \
wrapper.xsl \ wrapper.xsl \
doc/broadvoice-doxygen \ doc/broadvoice-doxygen \
...@@ -49,6 +50,9 @@ SUBDIRS = src $(MAYBE_DOC) $(MAYBE_TESTS) ...@@ -49,6 +50,9 @@ SUBDIRS = src $(MAYBE_DOC) $(MAYBE_TESTS)
DIST_SUBDIRS = src doc tests test-data DIST_SUBDIRS = src doc tests test-data
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = broadvoice.pc
faq: faq.xml faq: faq.xml
cd faq ; xsltproc ../wrapper.xsl ../faq.xml cd faq ; xsltproc ../wrapper.xsl ../faq.xml
......
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: spandsp
Description: A library for the BroadVoice 16 and 32 speech codecs.
Requires:
Version: @VERSION@
Libs: -L${libdir} -lbroadvoice -lm
Cflags: -I${includedir}
...@@ -9,8 +9,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root ...@@ -9,8 +9,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
Source: http://www.soft-switch.org/downloads/codecs/broadvoice-0.0.1.tar.gz Source: http://www.soft-switch.org/downloads/codecs/broadvoice-0.0.1.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Docdir: %{_prefix}/doc
BuildRequires: audiofile-devel BuildRequires: audiofile-devel
BuildRequires: doxygen BuildRequires: doxygen
...@@ -47,14 +45,13 @@ rm -rf %{buildroot} ...@@ -47,14 +45,13 @@ rm -rf %{buildroot}
%{_libdir}/libbroadvoice.so.* %{_libdir}/libbroadvoice.so.*
%{_datadir}/libbroadvoice
%files devel %files devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc doc/api %doc doc/api
%{_includedir}/broadvoice.h %{_includedir}/broadvoice.h
%{_includedir}/broadvoice %{_includedir}/broadvoice
%{_libdir}/libbroadvoice.so %{_libdir}/libbroadvoice.so
%{_libdir}/pkgconfig/broadvoice.pc
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
......
...@@ -9,8 +9,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root ...@@ -9,8 +9,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
Source: http://www.soft-switch.org/downloads/codecs/@PACKAGE@-@VERSION@.tar.gz Source: http://www.soft-switch.org/downloads/codecs/@PACKAGE@-@VERSION@.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Docdir: %{_prefix}/doc
BuildRequires: audiofile-devel BuildRequires: audiofile-devel
BuildRequires: doxygen BuildRequires: doxygen
...@@ -47,14 +45,13 @@ rm -rf %{buildroot} ...@@ -47,14 +45,13 @@ rm -rf %{buildroot}
%{_libdir}/libbroadvoice.so.* %{_libdir}/libbroadvoice.so.*
%{_datadir}/libbroadvoice
%files devel %files devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc doc/api %doc doc/api
%{_includedir}/broadvoice.h %{_includedir}/broadvoice.h
%{_includedir}/broadvoice %{_includedir}/broadvoice
%{_libdir}/libbroadvoice.so %{_libdir}/libbroadvoice.so
%{_libdir}/pkgconfig/broadvoice.pc
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# #
# $Id: configure.ac,v 1.1.1.1 2009/11/19 12:10:48 steveu Exp $ # $Id: configure.ac,v 1.2 2009/11/21 17:19:22 steveu Exp $
# @start 1 # @start 1
...@@ -384,6 +384,7 @@ AC_CONFIG_FILES([Makefile ...@@ -384,6 +384,7 @@ AC_CONFIG_FILES([Makefile
src/Makefile src/Makefile
src/broadvoice.h src/broadvoice.h
tests/Makefile tests/Makefile
broadvoice.pc
broadvoice.spec]) broadvoice.spec])
AC_CONFIG_FILES([tests/regression_tests.sh], [chmod +x tests/regression_tests.sh]) AC_CONFIG_FILES([tests/regression_tests.sh], [chmod +x tests/regression_tests.sh])
......
...@@ -71,7 +71,6 @@ binary-indep: build-stamp install ...@@ -71,7 +71,6 @@ binary-indep: build-stamp install
dh_testdir -i dh_testdir -i
dh_testroot -i dh_testroot -i
dh_installchangelogs -i ChangeLog dh_installchangelogs -i ChangeLog
dh_installdocs -i DueDiligence
dh_install -i dh_install -i
dh_compress -i dh_compress -i
dh_fixperms -i dh_fixperms -i
......
...@@ -16,17 +16,18 @@ ...@@ -16,17 +16,18 @@
## along with this program; if not, write to the Free Software ## along with this program; if not, write to the Free Software
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
## ##
## $Id: Makefile.am,v 1.1.1.1 2009/11/19 12:10:48 steveu Exp $ ## $Id: Makefile.am,v 1.4 2009/11/21 17:19:22 steveu Exp $
AM_CFLAGS = $(COMP_VENDOR_CFLAGS) AM_CFLAGS = $(COMP_VENDOR_CFLAGS)
AM_LDFLAGS = $(COMP_VENDOR_LDFLAGS) AM_LDFLAGS = $(COMP_VENDOR_LDFLAGS)
MAINTAINERCLEANFILES = Makefile.in MAINTAINERCLEANFILES = Makefile.in
EXTRA_DIST = broadvoice/version.h.in \ EXTRA_DIST = libbroadvoice.dsp \
broadvoice.dsp \ libbroadvoice.2005.sln \
broadvoice.sln \ libbroadvoice.2008.sln \
broadvoice.vcproj \ libbroadvoice.2005.vcproj \
libbroadvoice.2008.vcproj \
msvc/gettimeofday.c \ msvc/gettimeofday.c \
msvc/inttypes.h \ msvc/inttypes.h \
msvc/tgmath.h \ msvc/tgmath.h \
...@@ -35,10 +36,13 @@ EXTRA_DIST = broadvoice/version.h.in \ ...@@ -35,10 +36,13 @@ EXTRA_DIST = broadvoice/version.h.in \
msvc/broadvoice.def \ msvc/broadvoice.def \
msvc/msvcproj.head \ msvc/msvcproj.head \
msvc/msvcproj.foot \ msvc/msvcproj.foot \
msvc/vc8proj.foot \
msvc/vc8proj.head \ msvc/vc8proj.head \
msvc/vc8proj.foot msvc/vc9proj.foot \
msvc/vc9proj.head \
INCLUDES = -I$(top_builddir) -Ifloating/common -Ifloating/bv16 -Ifloating/bv32 broadvoice/version.h.in
INCLUDES = -I$(top_builddir) -I$(srcdir)/floating/common -I$(srcdir)/floating/bv16 -I$(srcdir)/floating/bv32
lib_LTLIBRARIES = libbroadvoice.la lib_LTLIBRARIES = libbroadvoice.la
...@@ -111,60 +115,80 @@ noinst_HEADERS = bitpack16.h \ ...@@ -111,60 +115,80 @@ noinst_HEADERS = bitpack16.h \
noinst_PROGRAMS = noinst_PROGRAMS =
DSP = broadvoice.dsp DSP = libbroadvoice.dsp
VCPROJ = broadvoice.vcproj VCPROJ8 = libbroadvoice.2005.vcproj
VCPROJ9 = libbroadvoice.2008.vcproj
WIN32SOURCES = $(libbroadvoice_la_SOURCES) msvc/gettimeofday.c WIN32SOURCES = $(libbroadvoice_la_SOURCES) .\\msvc\\gettimeofday.c
WIN32HEADERS = $(nobase_include_HEADERS) broadvoice.h WIN32HEADERS = $(nobase_include_HEADERS) broadvoice.h
DSPOUT = | awk '{printf("%s\r\n", $$0)}' >> $(DSP) DSPOUT = | awk '{printf("%s\r\n", $$0)}' >> $(DSP)
VCPROJOUT = | awk '{printf("%s\r\n", $$0)}' >> $(VCPROJ) VCPROJOUT8 = | awk '{printf("%s\r\n", $$0)}' >> $(VCPROJ8)
VCPROJOUT9 = | awk '{printf("%s\r\n", $$0)}' >> $(VCPROJ9)
$(DSP): msvc/msvcproj.head msvc/msvcproj.foot Makefile.am $(DSP): msvc/msvcproj.head msvc/msvcproj.foot Makefile.am
echo "creating $(DSP)" echo "creating $(DSP)"
@(cp $(srcdir)/msvc/msvcproj.head $(DSP); \ @(cp $(srcdir)/msvc/msvcproj.head $(DSP); \
echo "# Begin Group \"Source Files\"" $(DSPOUT); \ echo "# Begin Group \"Source Files\"" $(DSPOUT); \
for file in $(WIN32SOURCES); do \ for file in $(WIN32SOURCES); do \
myfile=`echo $$file | sed -e 's|/|\\\\|g'`; \
echo "# Begin Source File" $(DSPOUT); \ echo "# Begin Source File" $(DSPOUT); \
echo "" $(DSPOUT); \ echo "" $(DSPOUT); \
echo "SOURCE=.\\"$$myfile $(DSPOUT); \ echo "SOURCE=.\\"$$file $(DSPOUT); \
echo "# End Source File" $(DSPOUT); \ echo "# End Source File" $(DSPOUT); \
done; \ done; \
echo "# End Group" $(DSPOUT); \ echo "# End Group" $(DSPOUT); \
echo "# Begin Group \"Header Files\"" $(DSPOUT); \ echo "# Begin Group \"Header Files\"" $(DSPOUT); \
for file in $(WIN32HEADERS); do \ for file in $(WIN32HEADERS); do \
myfile=`echo $$file | sed -e 's|/|\\\\|g'`; \
echo "# Begin Source File" $(DSPOUT); \ echo "# Begin Source File" $(DSPOUT); \
echo "" $(DSPOUT); \ echo "" $(DSPOUT); \
echo "SOURCE=.\\"$$myfile $(DSPOUT); \ echo "SOURCE=.\\"$$file $(DSPOUT); \
echo "# End Source File" $(DSPOUT); \ echo "# End Source File" $(DSPOUT); \
done; \ done; \
echo "# End Group" $(DSPOUT); \ echo "# End Group" $(DSPOUT); \
cat $(srcdir)/msvc/msvcproj.foot $(DSPOUT) ) cat $(srcdir)/msvc/msvcproj.foot $(DSPOUT) )
$(VCPROJ): msvc/vc8proj.head msvc/vc8proj.foot Makefile.am $(VCPROJ8): msvc/vc8proj.head msvc/vc8proj.foot Makefile.am
echo "creating $(VCPROJ)" echo "creating $(VCPROJ8)"
@(cp $(srcdir)/msvc/vc8proj.head $(VCPROJ); \ @(cp $(srcdir)/msvc/vc8proj.head $(VCPROJ8); \
for file in $(WIN32SOURCES); do \
myfile=`echo $$file | sed -e 's|/|\\\\|g'`; \
echo "<File RelativePath=\""$$myfile"\"></File>" $(VCPROJOUT8); \
done; \
echo "</Filter><Filter Name=\"Header Files\">" $(VCPROJOUT8); \
for file in $(WIN32HEADERS); do \
myfile=`echo $$file | sed -e 's|/|\\\\|g'`; \
echo "<File RelativePath=\""$$myfile"\"></File>" $(VCPROJOUT8); \
done; \
cat $(srcdir)/msvc/vc8proj.foot $(VCPROJOUT8) )
$(VCPROJ9): msvc/vc9proj.head msvc/vc9proj.foot Makefile.am
echo "creating $(VCPROJ9)"
@(cp $(srcdir)/msvc/vc9proj.head $(VCPROJ9); \
for file in $(WIN32SOURCES); do \ for file in $(WIN32SOURCES); do \
myfile=`echo $$file | sed -e 's|/|\\\\|g'`; \ myfile=`echo $$file | sed -e 's|/|\\\\|g'`; \
echo "<File RelativePath=\""$$myfile"\"></File>" $(VCPROJOUT); \ echo "<File RelativePath=\""$$myfile"\"></File>" $(VCPROJOUT9); \
done; \ done; \
echo "</Filter><Filter Name=\"Header Files\">" $(VCPROJOUT); \ echo "</Filter><Filter Name=\"Header Files\">" $(VCPROJOUT9); \
for file in $(WIN32HEADERS); do \ for file in $(WIN32HEADERS); do \
myfile=`echo $$file | sed -e 's|/|\\\\|g'`; \ myfile=`echo $$file | sed -e 's|/|\\\\|g'`; \
echo "<File RelativePath=\""$$myfile"\"></File>" $(VCPROJOUT); \ echo "<File RelativePath=\""$$myfile"\"></File>" $(VCPROJOUT9); \
done; \ done; \
cat $(srcdir)/msvc/vc8proj.foot $(VCPROJOUT) ) cat $(srcdir)/msvc/vc9proj.foot $(VCPROJOUT9) )
$(srcdir)/msvc/broadvoice.h: broadvoice.h.in
echo "creating $(srcdir)/msvc/broadvoice.h"
@sed -e "s/#define _BROADVOICE_H_/#define _BROADVOICE_H_\n\n#define __inline__ __inline\n#pragma warning(disable:4200)/" \
-e "s/\@BROADVOICE_USE_FIXED_POINT\@/#undef BROADVOICE_USE_FIXED_POINT/" \
-e "s/\@BROADVOICE_MISALIGNED_ACCESS_FAILS\@/#undef BROADVOICE_MISALIGNED_ACCESS_FAILS/" \
-e "s/\@BROADVOICE_USE_EXPORT_CAPABILITY\@/#define BROADVOICE_USE_EXPORT_CAPABILITY 1/" \
-e "s/\@INSERT_INTTYPES_HEADER\@/#include <msvc\/inttypes.h>/" \
-e "s/\@INSERT_MATH_HEADER\@/#include <math.h>/" $(srcdir)/broadvoice.h.in > $(srcdir)/msvc/broadvoice.h
broadvoice/version.h: broadvoice/version.h:
mkdir -p $(@D)
NOWDATE=`date --utc +"%Y%m%d"` ; \ NOWDATE=`date --utc +"%Y%m%d"` ; \
NOWTIME=`date --utc +"%H%M%S"` ; \ NOWTIME=`date --utc +"%H%M%S"` ; \
sed 's/$$BROADVOICE_RELEASE_DATE/'$$NOWDATE'/;s/$$BROADVOICE_RELEASE_TIME/'$$NOWTIME'/' \ sed 's/$$BROADVOICE_RELEASE_DATE/'$$NOWDATE'/;s/$$BROADVOICE_RELEASE_TIME/'$$NOWTIME'/' \
<broadvoice/version.h.in >broadvoice/version.h <$(srcdir)/broadvoice/version.h.in >$@
dist-hook: dist-hook: broadvoice/version.h
NOWDATE=`date --utc +"%Y%m%d"` ; \
NOWTIME=`date --utc +"%H%M%S"` ; \
sed 's/$$BROADVOICE_RELEASE_DATE/'$$NOWDATE'/;s/$$BROADVOICE_RELEASE_TIME/'$$NOWTIME'/' \
<broadvoice/version.h.in >broadvoice/version.h
...@@ -93,197 +93,21 @@ LINK32=link.exe ...@@ -93,197 +93,21 @@ LINK32=link.exe
# Begin Group "Source Files" # Begin Group "Source Files"
# Begin Source File # Begin Source File
SOURCE=.\bitstream.c SOURCE=.\msvc/gettimeofday.c
# End Source File
# Begin Source File
SOURCE=.\floating\common\a2lsp.c
# End Source File
# Begin Source File
SOURCE=.\floating\common\allpole.c
# End Source File
# Begin Source File
SOURCE=.\floating\common\allzero.c
# End Source File
# Begin Source File
SOURCE=.\floating\common\autocor.c
# End Source File
# Begin Source File
SOURCE=.\floating\common\cmtables.c
# End Source File
# Begin Source File
SOURCE=.\floating\common\levdur.c
# End Source File
# Begin Source File
SOURCE=.\floating\common\lsp2a.c
# End Source File
# Begin Source File
SOURCE=.\floating\common\stblchck.c
# End Source File
# Begin Source File
SOURCE=.\floating\common\stblzlsp.c
# End Source File
# Begin Source File
SOURCE=.\floating\common\utility.c
# End Source File
# Begin Source File
SOURCE=.\bitpack16.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv16\bv16decoder.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv16\bv16encoder.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv16\bv16coarse_pitch.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv16\bv16excdec.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv16\bv16excquan.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv16\bv16fine_pitch.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv16\bv16gaindec.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv16\bv16gainquan.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv16\bv16levelest.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv16\bv16lspdec.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv16\bv16lspquan.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv16\bv16plc.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv16\bv16ptdec.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv16\bv16postfilter.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv16\bv16ptquan.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv16\bv16tables.c
# End Source File
# Begin Source File
SOURCE=.\bitpack32.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv32\bv32decoder.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv32\bv32encoder.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv32\bv32coarse_pitch.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv32\bv32excdec.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv32\bv32excquan.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv32\bv32fine_pitch.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv32\bv32gaindec.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv32\bv32gainquan.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv32\bv32levelest.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv32\bv32lspdec.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv32\bv32lspquan.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv32\bv32plc.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv32\bv32ptdec.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv32\bv32ptquan.c
# End Source File
# Begin Source File
SOURCE=.\floating\bv32\bv32tables.c
# End Source File
# Begin Source File
SOURCE=.\msvc\gettimeofday.c
# End Source File # End Source File
# End Group # End Group
# Begin Group "Header Files" # Begin Group "Header Files"
# Begin Source File # Begin Source File
SOURCE=.\broadvoice\broadvoice.h SOURCE=.\broadvoice/broadvoice.h
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=.\broadvoice\version.h SOURCE=.\broadvoice/version.h
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=.\broadvoice\private\broadvoice.h SOURCE=.\broadvoice/private/broadvoice.h
# End Source File # End Source File
# Begin Source File # Begin Source File
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
/* The date and time of the version are in UTC form. */ /* The date and time of the version are in UTC form. */
#define BROADVOICE_RELEASE_DATE 20091119 #define BROADVOICE_RELEASE_DATE 20091119
#define BROADVOICE_RELEASE_TIME 124304 #define BROADVOICE_RELEASE_TIME 131751
#endif #endif
/*- End of file ------------------------------------------------------------*/ /*- End of file ------------------------------------------------------------*/

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libbroadvoice", "libbroadvoice.vcproj", "{CF70F278-3364-4395-A2E1-23501C9B8AD2}"
ProjectSection(ProjectDependencies) = postProject
{1CED5987-A529-46DC-B30F-870D85FF9C94} = {1CED5987-A529-46DC-B30F-870D85FF9C94}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "at_dictionary_gen", "src\msvc\at_dictionary_gen.vcproj", "{1CED5987-A529-46DC-B30F-870D85FF9C94}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{CF70F278-3364-4395-A2E1-23501C9B8AD2}.Debug|Win32.ActiveCfg = Debug|Win32
{CF70F278-3364-4395-A2E1-23501C9B8AD2}.Debug|Win32.Build.0 = Debug|Win32
{CF70F278-3364-4395-A2E1-23501C9B8AD2}.Release|Win32.ActiveCfg = Release|Win32
{CF70F278-3364-4395-A2E1-23501C9B8AD2}.Release|Win32.Build.0 = Release|Win32
{1CED5987-A529-46DC-B30F-870D85FF9C94}.Debug|Win32.ActiveCfg = Debug|Win32
{1CED5987-A529-46DC-B30F-870D85FF9C94}.Debug|Win32.Build.0 = Debug|Win32
{1CED5987-A529-46DC-B30F-870D85FF9C94}.Release|Win32.ActiveCfg = Release|Win32
{1CED5987-A529-46DC-B30F-870D85FF9C94}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
差异被折叠。

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libbroadvoice", "libbroadvoice.vcproj", "{CF70F278-3364-4395-A2E1-23501C9B8AD2}"
ProjectSection(ProjectDependencies) = postProject
{1CED5987-A529-46DC-B30F-870D85FF9C94} = {1CED5987-A529-46DC-B30F-870D85FF9C94}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "at_dictionary_gen", "src\msvc\at_dictionary_gen.vcproj", "{1CED5987-A529-46DC-B30F-870D85FF9C94}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{CF70F278-3364-4395-A2E1-23501C9B8AD2}.Debug|Win32.ActiveCfg = Debug|Win32
{CF70F278-3364-4395-A2E1-23501C9B8AD2}.Debug|Win32.Build.0 = Debug|Win32
{CF70F278-3364-4395-A2E1-23501C9B8AD2}.Release|Win32.ActiveCfg = Release|Win32
{CF70F278-3364-4395-A2E1-23501C9B8AD2}.Release|Win32.Build.0 = Release|Win32
{1CED5987-A529-46DC-B30F-870D85FF9C94}.Debug|Win32.ActiveCfg = Debug|Win32
{1CED5987-A529-46DC-B30F-870D85FF9C94}.Debug|Win32.Build.0 = Debug|Win32
{1CED5987-A529-46DC-B30F-870D85FF9C94}.Release|Win32.ActiveCfg = Release|Win32
{1CED5987-A529-46DC-B30F-870D85FF9C94}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
差异被折叠。
# Microsoft Developer Studio Project File - Name="gbroadvoice" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
CFG=gbroadvoice - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "gbroadvoice.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "gbroadvoice.mak" CFG="gbroadvoice - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "gbroadvoice - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
!MESSAGE "gbroadvoice - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
MTL=midl.exe
RSC=rc.exe
!IF "$(CFG)" == "gbroadvoice - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D HAVE_TGMATH_H /YX /FD /c
# ADD CPP /nologo /MT /W3 /GX /Zi /O2 /I "." /I "..\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D HAVE_TGMATH_H /D "_WINDLL" /FR /FD /c
# SUBTRACT CPP /YX
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
# ADD LINK32 kernel32.lib ws2_32.lib winmm.lib /nologo /dll /map /debug /machine:I386 /out:"Release/libgbroadvoice.dll"
!ELSEIF "$(CFG)" == "gbroadvoice - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D HAVE_TGMATH_H /YX /FD /GZ /c
# ADD CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /I "." /I "..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D HAVE_TGMATH_H /FR /FD /GZ /c
# SUBTRACT CPP /WX /YX
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib ws2_32.lib winmm.lib /nologo /dll /incremental:no /map /debug /machine:I386 /out:"Debug/libgbroadvoice.dll" /pdbtype:sept
# SUBTRACT LINK32 /nodefaultlib
!ENDIF
# Begin Target
# Name "gbroadvoice - Win32 Release"
# Name "gbroadvoice - Win32 Debug"
# Begin Group "Source Files"
# Begin Source File
SOURCE=.\bitstream.c
# End Source File
# Begin Source File
SOURCE=.\floating/common/a2lsp.c
# End Source File
# Begin Source File
SOURCE=.\floating/common/allpole.c
# End Source File
# Begin Source File
SOURCE=.\floating/common/allzero.c
# End Source File
# Begin Source File
SOURCE=.\floating/common/autocor.c
# End Source File
# Begin Source File
SOURCE=.\floating/common/cmtables.c
# End Source File
# Begin Source File
SOURCE=.\floating/common/levdur.c
# End Source File
# Begin Source File
SOURCE=.\floating/common/lsp2a.c
# End Source File
# Begin Source File
SOURCE=.\floating/common/stblchck.c
# End Source File
# Begin Source File
SOURCE=.\floating/common/stblzlsp.c
# End Source File
# Begin Source File
SOURCE=.\floating/common/utility.c
# End Source File
# Begin Source File
SOURCE=.\bitpack16.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv16/bv16decoder.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv16/bv16encoder.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv16/bv16coarse_pitch.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv16/bv16excdec.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv16/bv16excquan.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv16/bv16fine_pitch.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv16/bv16gaindec.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv16/bv16gainquan.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv16/bv16levelest.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv16/bv16lspdec.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv16/bv16lspquan.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv16/bv16plc.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv16/bv16ptdec.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv16/bv16postfilter.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv16/bv16ptquan.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv16/bv16tables.c
# End Source File
# Begin Source File
SOURCE=.\bitpack32.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv32/bv32decoder.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv32/bv32encoder.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv32/bv32coarse_pitch.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv32/bv32excdec.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv32/bv32excquan.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv32/bv32fine_pitch.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv32/bv32gaindec.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv32/bv32gainquan.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv32/bv32levelest.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv32/bv32lspdec.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv32/bv32lspquan.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv32/bv32plc.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv32/bv32ptdec.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv32/bv32ptquan.c
# End Source File
# Begin Source File
SOURCE=.\floating/bv32/bv32tables.c
# End Source File
# Begin Source File
SOURCE=.\.\msvc\gettimeofday.c
# End Source File
# End Group
# Begin Group "Header Files"
# Begin Source File
SOURCE=.\broadvoice/broadvoice.h
# End Source File
# Begin Source File
SOURCE=.\broadvoice/version.h
# End Source File
# Begin Source File
SOURCE=.\broadvoice/private/broadvoice.h
# End Source File
# Begin Source File
SOURCE=.\broadvoice.h
# End Source File
# End Group
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# End Group
# End Target
# End Project
# Microsoft Developer Studio Project File - Name="g722_1" - Package Owner=<4> # Microsoft Developer Studio Project File - Name="gbroadvoice" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00 # Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT ** # ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 # TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
CFG=g722_1 - Win32 Debug CFG=gbroadvoice - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE, !MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run !MESSAGE use the Export Makefile command and run
!MESSAGE !MESSAGE
!MESSAGE NMAKE /f "g722_1.mak". !MESSAGE NMAKE /f "gbroadvoice.mak".
!MESSAGE !MESSAGE
!MESSAGE You can specify a configuration when running NMAKE !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example: !MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE !MESSAGE
!MESSAGE NMAKE /f "g722_1.mak" CFG="g722_1 - Win32 Debug" !MESSAGE NMAKE /f "gbroadvoice.mak" CFG="gbroadvoice - Win32 Debug"
!MESSAGE !MESSAGE
!MESSAGE Possible choices for configuration are: !MESSAGE Possible choices for configuration are:
!MESSAGE !MESSAGE
!MESSAGE "g722_1 - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library") !MESSAGE "gbroadvoice - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
!MESSAGE "g722_1 - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library") !MESSAGE "gbroadvoice - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
!MESSAGE !MESSAGE
# Begin Project # Begin Project
...@@ -29,7 +29,7 @@ CPP=cl.exe ...@@ -29,7 +29,7 @@ CPP=cl.exe
MTL=midl.exe MTL=midl.exe
RSC=rc.exe RSC=rc.exe
!IF "$(CFG)" == "g722_1 - Win32 Release" !IF "$(CFG)" == "gbroadvoice - Win32 Release"
# PROP BASE Use_MFC 0 # PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0 # PROP BASE Use_Debug_Libraries 0
...@@ -54,9 +54,9 @@ BSC32=bscmake.exe ...@@ -54,9 +54,9 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo # ADD BSC32 /nologo
LINK32=link.exe LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
# ADD LINK32 kernel32.lib ws2_32.lib winmm.lib /nologo /dll /map /debug /machine:I386 /out:"Release/libg722_1.dll" # ADD LINK32 kernel32.lib ws2_32.lib winmm.lib /nologo /dll /map /debug /machine:I386 /out:"Release/libgbroadvoice.dll"
!ELSEIF "$(CFG)" == "g722_1 - Win32 Debug" !ELSEIF "$(CFG)" == "gbroadvoice - Win32 Debug"
# PROP BASE Use_MFC 0 # PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1 # PROP BASE Use_Debug_Libraries 1
...@@ -81,12 +81,12 @@ BSC32=bscmake.exe ...@@ -81,12 +81,12 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo # ADD BSC32 /nologo
LINK32=link.exe LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib ws2_32.lib winmm.lib /nologo /dll /incremental:no /map /debug /machine:I386 /out:"Debug/libg722_1.dll" /pdbtype:sept # ADD LINK32 kernel32.lib ws2_32.lib winmm.lib /nologo /dll /incremental:no /map /debug /machine:I386 /out:"Debug/libgbroadvoice.dll" /pdbtype:sept
# SUBTRACT LINK32 /nodefaultlib # SUBTRACT LINK32 /nodefaultlib
!ENDIF !ENDIF
# Begin Target # Begin Target
# Name "g722_1 - Win32 Release" # Name "gbroadvoice - Win32 Release"
# Name "g722_1 - Win32 Debug" # Name "gbroadvoice - Win32 Debug"
</Filter>
<Filter
Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Name="libbroadvoice"
ProjectGUID="{CF70F278-3364-4395-A2E1-23501C9B8AD2}"
RootNamespace="libbroadvoice"
Keyword="Win32Proj"
TargetFrameworkVersion="131072"
>
<Platforms>
<Platform
Name="Win32"
/>
<Platform
Name="x64"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=".; .\floating\common; .\floating\bv16; .\floating\bv32; .\broadvoice; .\msvc"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;BROADVOICE_EXPORTS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;HAVE_TGMATH_H"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="0"
WarningLevel="4"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="4"
CompileAs="1"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
LinkIncremental="2"
GenerateDebugInformation="true"
SubSystem="2"
RandomizedBaseAddress="1"
DataExecutionPrevention="0"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories=".; .\floating\common; .\floating\bv16; .\floating\bv32; .\broadvoice; .\msvc"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;BROADVOICE_EXPORTS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;HAVE_TGMATH_H"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="4"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
LinkIncremental="1"
GenerateDebugInformation="true"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
RandomizedBaseAddress="1"
DataExecutionPrevention="0"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Debug|x64"
OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="3"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=".; .\floating\common; .\floating\bv16; .\floating\bv32; .\broadvoice; .\msvc"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;BROADVOICE_EXPORTS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;HAVE_TGMATH_H"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="0"
WarningLevel="4"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="3"
CompileAs="1"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
LinkIncremental="2"
GenerateDebugInformation="true"
SubSystem="2"
RandomizedBaseAddress="1"
DataExecutionPrevention="0"
TargetMachine="17"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|x64"
OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="3"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories=".; .\floating\common; .\floating\bv16; .\floating\bv32; .\broadvoice; .\msvc"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;BROADVOICE_EXPORTS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;HAVE_TGMATH_H"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="4"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
LinkIncremental="1"
GenerateDebugInformation="true"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
RandomizedBaseAddress="1"
DataExecutionPrevention="0"
TargetMachine="17"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
...@@ -16,18 +16,14 @@ ...@@ -16,18 +16,14 @@
## along with this program; if not, write to the Free Software ## along with this program; if not, write to the Free Software
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
## ##
## $Id: Makefile.am,v 1.1.1.1 2009/11/19 12:10:48 steveu Exp $ ## $Id: Makefile.am,v 1.2 2009/11/20 13:12:23 steveu Exp $
AM_CFLAGS = $(COMP_VENDOR_CFLAGS) AM_CFLAGS = $(COMP_VENDOR_CFLAGS)
AM_LDFLAGS = $(COMP_VENDOR_LDFLAGS) AM_LDFLAGS = $(COMP_VENDOR_LDFLAGS)
LIBS += $(TESTLIBS) LIBS += $(TESTLIBS)
EXTRA_DIST = regression_tests.sh \ EXTRA_DIST = regression_tests.sh.in
bv16_fixed_tests.sh \
bv32_fixed_tests.sh \
bv16_floating_tests.sh \
bv32_floating_tests.sh
MAINTAINERCLEANFILES = Makefile.in MAINTAINERCLEANFILES = Makefile.in
...@@ -35,14 +31,10 @@ INCLUDES = -I$(top_builddir)/src -DDATADIR="\"$(pkgdatadir)\"" ...@@ -35,14 +31,10 @@ INCLUDES = -I$(top_builddir)/src -DDATADIR="\"$(pkgdatadir)\""
LIBDIR = -L$(top_builddir)/src LIBDIR = -L$(top_builddir)/src
noinst_PROGRAMS = bv16_tests \ noinst_PROGRAMS = broadvoice_tests
bv32_tests
noinst_HEADERS = g192_bit_stream.h \ noinst_HEADERS = g192_bit_stream.h \
timing.h timing.h
bv16_tests_SOURCES = bv16_tests.c g192_bit_stream.c broadvoice_tests_SOURCES = broadvoice_tests.c g192_bit_stream.c
bv16_tests_LDADD = $(LIBDIR) -lbroadvoice broadvoice_tests_LDADD = $(LIBDIR) -lbroadvoice
bv32_tests_SOURCES = bv32_tests.c g192_bit_stream.c
bv32_tests_LDADD = $(LIBDIR) -lbroadvoice
差异被折叠。
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* License along with this program; if not, write to the Free Software * License along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* *
* $Id: g192_bit_stream.c,v 1.1.1.1 2009/11/19 12:10:48 steveu Exp $ * $Id: g192_bit_stream.c,v 1.2 2009/11/20 13:12:24 steveu Exp $
*/ */
/*! \file */ /*! \file */
...@@ -92,7 +92,7 @@ void itu_codec_bitstream_write(const uint8_t out_data[], ...@@ -92,7 +92,7 @@ void itu_codec_bitstream_write(const uint8_t out_data[],
/*- End of function --------------------------------------------------------*/ /*- End of function --------------------------------------------------------*/
int itu_codec_bitstream_read(uint8_t in_data[], int itu_codec_bitstream_read(uint8_t in_data[],
int16_t *p_frame_error_flag, int16_t *frame_error_flag,
int number_of_bits, int number_of_bits,
int mode, int mode,
FILE *fp_bitstream) FILE *fp_bitstream)
...@@ -107,6 +107,7 @@ int itu_codec_bitstream_read(uint8_t in_data[], ...@@ -107,6 +107,7 @@ int itu_codec_bitstream_read(uint8_t in_data[],
int16_t bit; int16_t bit;
int16_t in_array[2 + number_of_bits]; int16_t in_array[2 + number_of_bits];
*frame_error_flag = 0;
if (mode == ITU_CODEC_BITSTREAM_PACKED) if (mode == ITU_CODEC_BITSTREAM_PACKED)
return fread(in_data, 1, number_of_bits/8, fp_bitstream)*8; return fread(in_data, 1, number_of_bits/8, fp_bitstream)*8;
...@@ -115,23 +116,22 @@ int itu_codec_bitstream_read(uint8_t in_data[], ...@@ -115,23 +116,22 @@ int itu_codec_bitstream_read(uint8_t in_data[],
return -1; return -1;
if (in_array[0] < G192_FRAME_ERASURE || in_array[0] > G192_FRAME_SYNC_15) if (in_array[0] < G192_FRAME_ERASURE || in_array[0] > G192_FRAME_SYNC_15)
{ {
*p_frame_error_flag = 1; *frame_error_flag = 1;
return 0; return 0;
} }
erased_frame = (in_array[0] == G192_FRAME_ERASURE); erased_frame = (in_array[0] == G192_FRAME_ERASURE);
len = in_array[1]; len = in_array[1];
if (len > number_of_bits) if (len > number_of_bits)
{ {
*p_frame_error_flag = 1; *frame_error_flag = 1;
return 0; return 0;
} }
nsamp = fread(in_array, sizeof(int16_t), len, fp_bitstream); nsamp = fread(in_array, sizeof(int16_t), len, fp_bitstream);
if (nsamp != len) if (nsamp != len)
{ {
*p_frame_error_flag = 1; *frame_error_flag = 1;
return nsamp; return nsamp;
} }
*p_frame_error_flag = 0;
for (i = 0, j = 0; i < nsamp/8; i++) for (i = 0, j = 0; i < nsamp/8; i++)
{ {
...@@ -152,14 +152,14 @@ int itu_codec_bitstream_read(uint8_t in_data[], ...@@ -152,14 +152,14 @@ int itu_codec_bitstream_read(uint8_t in_data[],
else else
{ {
/* Bad bit */ /* Bad bit */
*p_frame_error_flag = 1; *frame_error_flag = 1;
} }
bit_pos--; bit_pos--;
} }
in_data[i] = packed_word; in_data[i] = packed_word;
} }
if (erased_frame) if (erased_frame)
*p_frame_error_flag = 1; *frame_error_flag = 1;
return nsamp; return nsamp;
} }
/*- End of function --------------------------------------------------------*/ /*- End of function --------------------------------------------------------*/
......
...@@ -17,87 +17,69 @@ ...@@ -17,87 +17,69 @@
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# #
# $Id: regression_tests.sh.in,v 1.1.1.1 2009/11/19 12:10:48 steveu Exp $ # $Id: regression_tests.sh.in,v 1.2 2009/11/20 13:12:24 steveu Exp $
# #
STDOUT_DEST=xyzzy STDOUT_DEST=xyzzy
STDERR_DEST=xyzzy2 STDERR_DEST=xyzzy2
VECTOR_CLASS=@G722_1_VECTORS_FOR_TESTS@ VECTOR_CLASS=@BROADVOICE_VECTORS_FOR_TESTS@
TMP_FILE=tmp TMP_FILE=tmp
echo Performing basic G.722_1 regression tests echo Performing basic BroadVoice 16 and 32 regression tests
echo echo
./broadvoice_tests E I 32000 16000 ../test-data/itu/g722_1/$VECTOR_CLASS/g722_1_enc_in.pcm $TMP_FILE ./broadvoice_tests E I 32000 ../test-data/broadcom/$VECTOR_CLASS/bv32/tv.raw $TMP_FILE
diff $TMP_FILE ../test-data/itu/g722_1/$VECTOR_CLASS/g722_1_enc_out_32000.itu diff $TMP_FILE ../test-data/broadcom/$VECTOR_CLASS/bv32/tv.bv32.ref
RETVAL=$? RETVAL=$?
if [ $RETVAL != 0 ] if [ $RETVAL != 0 ]
then then
echo broadvoice_tests E failed! echo broadvoice_tests encode failed!
exit $RETVAL exit $RETVAL
fi fi
./broadvoice_tests E I 24000 16000 ../test-data/itu/g722_1/$VECTOR_CLASS/g722_1_enc_in.pcm $TMP_FILE ./broadvoice_tests E I 16000 ../test-data/broadcom/$VECTOR_CLASS/bv16/tv.raw $TMP_FILE
diff $TMP_FILE ../test-data/itu/g722_1/$VECTOR_CLASS/g722_1_enc_out_24000.itu diff $TMP_FILE ../test-data/broadcom/$VECTOR_CLASS/bv16/tv.bv16.ref
RETVAL=$? RETVAL=$?
if [ $RETVAL != 0 ] if [ $RETVAL != 0 ]
then then
echo broadvoice_tests E failed! echo broadvoice_tests encode failed!
exit $RETVAL exit $RETVAL
fi fi
echo broadvoice_tests E completed OK echo broadvoice_tests encode completed OK
./broadvoice_tests D I 24000 16000 ../test-data/itu/g722_1/$VECTOR_CLASS/g722_1_enc_out_24000.itu $TMP_FILE ./broadvoice_tests D I 32000 ../test-data/broadcom/$VECTOR_CLASS/bv32/tv.bv32.ref $TMP_FILE
diff $TMP_FILE ../test-data/itu/g722_1/$VECTOR_CLASS/g722_1_dec_out_24000.pcm diff $TMP_FILE ../test-data/broadcom/$VECTOR_CLASS/bv32/tv.bv32.ref.raw
RETVAL=$? RETVAL=$?
if [ $RETVAL != 0 ] if [ $RETVAL != 0 ]
then then
echo broadvoice_tests D failed! echo broadvoice_tests decode failed!
exit $RETVAL exit $RETVAL
fi fi
./broadvoice_tests D I 32000 16000 ../test-data/itu/g722_1/$VECTOR_CLASS/g722_1_enc_out_32000.itu $TMP_FILE ./broadvoice_tests D I 16000 ../test-data/broadcom/$VECTOR_CLASS/bv16/tv.bv16.ref $TMP_FILE
diff $TMP_FILE ../test-data/itu/g722_1/$VECTOR_CLASS/g722_1_dec_out_32000.pcm diff $TMP_FILE ../test-data/broadcom/$VECTOR_CLASS/bv16/tv.bv16.ref.raw
RETVAL=$? RETVAL=$?
if [ $RETVAL != 0 ] if [ $RETVAL != 0 ]
then then
echo broadvoice_tests D failed! echo broadvoice_tests decode failed!
exit $RETVAL exit $RETVAL
fi fi
./broadvoice_tests D I 24000 16000 ../test-data/itu/g722_1/$VECTOR_CLASS/g722_1_dec_in_24000_fe.itu $TMP_FILE ./broadvoice_tests D I 32000 ../test-data/broadcom/$VECTOR_CLASS/bv32/tv.bfe10.bv32 $TMP_FILE
diff $TMP_FILE ../test-data/itu/g722_1/$VECTOR_CLASS/g722_1_dec_out_24000_fe.pcm diff $TMP_FILE ../test-data/broadcom/$VECTOR_CLASS/bv32/tv.bv32.bfe10.ref.raw
RETVAL=$? RETVAL=$?
if [ $RETVAL != 0 ] if [ $RETVAL != 0 ]
then then
echo broadvoice_tests D failed! echo broadvoice_tests decode failed!
exit $RETVAL exit $RETVAL
fi fi
./broadvoice_tests D I 32000 16000 ../test-data/itu/g722_1/$VECTOR_CLASS/g722_1_dec_in_32000_fe.itu $TMP_FILE ./broadvoice_tests D I 16000 ../test-data/broadcom/$VECTOR_CLASS/bv16/tv.bfe10.bv16 $TMP_FILE
diff $TMP_FILE ../test-data/itu/g722_1/$VECTOR_CLASS/g722_1_dec_out_32000_fe.pcm diff $TMP_FILE ../test-data/broadcom/$VECTOR_CLASS/bv16/tv.bv16.bfe10.ref.raw
RETVAL=$? RETVAL=$?
if [ $RETVAL != 0 ] if [ $RETVAL != 0 ]
then then
echo broadvoice_tests D failed! echo broadvoice_tests decode failed!
exit $RETVAL exit $RETVAL
fi fi
echo broadvoice_tests D completed OK echo broadvoice_tests decode completed OK
./broadvoice_tests E I 32000 16000 ../test-data/local/short_wb_voice.wav $TMP_FILE
RETVAL=$?
if [ $RETVAL != 0 ]
then
echo broadvoice_tests E failed!
exit $RETVAL
fi
echo broadvoice_tests E completed OK
./broadvoice_tests D I 32000 16000 $TMP_FILE test.au
RETVAL=$?
if [ $RETVAL != 0 ]
then
echo broadvoice_tests D failed!
exit $RETVAL
fi
echo broadvoice_tests D completed OK
echo echo
echo All regression tests successfully completed echo All regression tests successfully completed
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论