bug fix, preparation for adding CELT sources

This commit is contained in:
Volker Fischer 2009-08-12 18:26:00 +00:00
parent 28592baf88
commit f4f4f64fa1
4 changed files with 89 additions and 201 deletions

View file

@ -52,6 +52,10 @@ dnl Checks for some external libraries that need to be installed
AC_LANG(C++)
dnl CELT ------------------------------------------------------------------------
AC_DEFINE([USE_ALLOCA], [], [Make use of alloca])
dnl QT4 -------------------------------------------------------------------------
dnl The QT4 check code was taken from the FreeMat-3.0 code by Samit Basu
PKG_CHECK_MODULES(QT, QtCore QtGui QtNetwork QtXml >= 4.0.1, HAVE_QT4="yes", HAVE_QT4="no")

View file

@ -1,10 +1,3 @@
# First compile additional libraries where the code is in our repository -------
# CELT
SUBDIRS = ../libs/celt/libcelt
LIB_INCL_DIRS = -I../libs/celt/libcelt
# Now we can deal with the actual llcon code -----------------------------------
bin_PROGRAMS = llcon
llcon_SOURCES = ../src/buffer.cpp \
@ -26,6 +19,27 @@ llcon_SOURCES = ../src/buffer.cpp \
../src/serverlogging.cpp \
../src/soundbase.cpp \
sound.cpp \
../libs/celt/bands.c \
../libs/celt/celt.c \
../libs/celt/cwrs.c \
../libs/celt/ecintrin.h \
../libs/celt/entcode.c \
../libs/celt/entdec.c \
../libs/celt/entenc.c \
../libs/celt/header.c \
../libs/celt/kfft_single.c \
../libs/celt/kiss_fft.c \
../libs/celt/kiss_fftr.c \
../libs/celt/laplace.c \
../libs/celt/mdct.c \
../libs/celt/modes.c \
../libs/celt/pitch.c \
../libs/celt/psy.c \
../libs/celt/quant_bands.c \
../libs/celt/rangedec.c \
../libs/celt/rangeenc.c \
../libs/celt/rate.c \
../libs/celt/vq.c
../src/buffer.h \
../src/global.h \
../src/socket.h \
@ -51,6 +65,36 @@ llcon_SOURCES = ../src/buffer.cpp \
../src/chatdlgbase.ui \
../src/aboutdlgbase.ui \
sound.h \
../libs/celt/celt.h \
../libs/celt/celt_types.h \
../libs/celt/celt_header.h
../libs/celt/_kiss_fft_guts.h \
../libs/celt/arch.h \
../libs/celt/bands.h \
../libs/celt/fixed_c5x.h \
../libs/celt/fixed_c6x.h \
../libs/celt/cwrs.h \
../libs/celt/ecintrin.h \
../libs/celt/entcode.h \
../libs/celt/entdec.h \
../libs/celt/entenc.h \
../libs/celt/fixed_generic.h \
../libs/celt/float_cast.h \
../libs/celt/kfft_double.h \
../libs/celt/kfft_single.h \
../libs/celt/kiss_fft.h \
../libs/celt/kiss_fftr.h \
../libs/celt/laplace.h \
../libs/celt/mdct.h \
../libs/celt/mfrngcod.h \
../libs/celt/mathops.h \
../libs/celt/modes.h \
../libs/celt/os_support.h \
../libs/celt/pitch.h \
../libs/celt/psy.h \
../libs/celt/quant_bands.h \
../libs/celt/rate.h \
../libs/celt/stack_alloc.h vq.h
../src/resources.qrc \
../src/res/gig.png \
../src/res/mainicon.png \
@ -190,4 +234,4 @@ moc/resources.cpp: ../src/resources.qrc
$(QT_RCC) ../src/resources.qrc -o moc/resources.cpp
llcon_CXXFLAGS=-I../src $(LIB_INCL_DIRS) $(QT_CFLAGS) -DQT_THREAD_SUPPORT -D_REENTRANT -g
llcon_CXXFLAGS=-I../src -I../libs/celt $(LIB_INCL_DIRS) $(QT_CFLAGS) -DQT_THREAD_SUPPORT -D_REENTRANT -g

View file

@ -112,6 +112,17 @@ CServer::CServer ( const QString& strLoggingFileName,
{
int i;
// create CELT encoder/decoder for each channel
for ( i = 0; i < USED_NUM_CHANNELS; i++ )
{
// init audio endocder/decoder (mono)
CeltMode[i] = celt_mode_create (
SYSTEM_SAMPLE_RATE, 1, SYSTEM_BLOCK_FRAME_SAMPLES, NULL );
CeltEncoder[i] = celt_encoder_create ( CeltMode[i] );
CeltDecoder[i] = celt_decoder_create ( CeltMode[i] );
}
// enable all channels (for the server all channel must be enabled the
// entire life time of the software
for ( i = 0; i < USED_NUM_CHANNELS; i++ )
@ -164,17 +175,6 @@ CServer::CServer ( const QString& strLoggingFileName,
QString().number( static_cast<int> ( iPortNumber ) ) );
}
// create CELT encoder/decoder for each channel
for ( i = 0; i < USED_NUM_CHANNELS; i++ )
{
// init audio endocder/decoder (mono)
CeltMode[i] = celt_mode_create (
SYSTEM_SAMPLE_RATE, 1, SYSTEM_BLOCK_FRAME_SAMPLES, NULL );
CeltEncoder[i] = celt_encoder_create ( CeltMode[i] );
CeltDecoder[i] = celt_decoder_create ( CeltMode[i] );
}
// connections -------------------------------------------------------------
// connect timer timeout signal

View file

@ -48,7 +48,7 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="&quot;$(QTDIR)\include&quot;;&quot;$(QTDIR)\include\Qt&quot;;../src;ASIOSDK2/common;ASIOSDK2/host;ASIOSDK2/host/pc;../libs/celt/libcelt"
AdditionalIncludeDirectories="&quot;$(QTDIR)\include&quot;;&quot;$(QTDIR)\include\Qt&quot;;../src;ASIOSDK2/common;ASIOSDK2/host;ASIOSDK2/host/pc;../libs/celt"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;QT_DLL;QT_THREAD_SUPPORT;USE_ALLOCA"
MinimalRebuild="true"
BasicRuntimeChecks="3"
@ -146,7 +146,7 @@
Name="VCCLCompilerTool"
Optimization="2"
InlineFunctionExpansion="1"
AdditionalIncludeDirectories="&quot;$(QTDIR)\include&quot;;&quot;$(QTDIR)\include\Qt&quot;;../src;ASIOSDK2/common;ASIOSDK2/host;ASIOSDK2/host/pc;../libs/celt/libcelt"
AdditionalIncludeDirectories="&quot;$(QTDIR)\include&quot;;&quot;$(QTDIR)\include\Qt&quot;;../src;ASIOSDK2/common;ASIOSDK2/host;ASIOSDK2/host/pc;../libs/celt"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;QT_DLL;QT_THREAD_SUPPORT;USE_ALLOCA"
StringPooling="true"
RuntimeLibrary="2"
@ -905,244 +905,84 @@
Name="CELT"
>
<File
RelativePath="..\libs\celt\libcelt\bands.c"
RelativePath="..\libs\celt\bands.c"
>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
CompileAs="1"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\libs\celt\libcelt\celt.c"
RelativePath="..\libs\celt\celt.c"
>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
CompileAs="1"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\libs\celt\libcelt\cwrs.c"
RelativePath="..\libs\celt\cwrs.c"
>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
CompileAs="1"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\libs\celt\libcelt\entcode.c"
RelativePath="..\libs\celt\entcode.c"
>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
CompileAs="1"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\libs\celt\libcelt\entdec.c"
RelativePath="..\libs\celt\entdec.c"
>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
CompileAs="1"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\libs\celt\libcelt\entenc.c"
RelativePath="..\libs\celt\entenc.c"
>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
CompileAs="1"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\libs\celt\libcelt\header.c"
RelativePath="..\libs\celt\header.c"
>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
CompileAs="1"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\libs\celt\libcelt\kfft_single.c"
RelativePath="..\libs\celt\kfft_single.c"
>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
CompileAs="1"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\libs\celt\libcelt\kiss_fft.c"
RelativePath="..\libs\celt\kiss_fft.c"
>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
CompileAs="1"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\libs\celt\libcelt\kiss_fftr.c"
RelativePath="..\libs\celt\kiss_fftr.c"
>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
CompileAs="1"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\libs\celt\libcelt\laplace.c"
RelativePath="..\libs\celt\laplace.c"
>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
CompileAs="1"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\libs\celt\libcelt\mdct.c"
RelativePath="..\libs\celt\mdct.c"
>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
CompileAs="1"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\libs\celt\libcelt\modes.c"
RelativePath="..\libs\celt\modes.c"
>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
CompileAs="1"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\libs\celt\libcelt\pitch.c"
RelativePath="..\libs\celt\pitch.c"
>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
CompileAs="1"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\libs\celt\libcelt\psy.c"
RelativePath="..\libs\celt\psy.c"
>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
CompileAs="1"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\libs\celt\libcelt\quant_bands.c"
RelativePath="..\libs\celt\quant_bands.c"
>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
CompileAs="1"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\libs\celt\libcelt\rangedec.c"
RelativePath="..\libs\celt\rangedec.c"
>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
CompileAs="1"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\libs\celt\libcelt\rangeenc.c"
RelativePath="..\libs\celt\rangeenc.c"
>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
CompileAs="1"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\libs\celt\libcelt\rate.c"
RelativePath="..\libs\celt\rate.c"
>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
CompileAs="1"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\libs\celt\libcelt\vq.c"
RelativePath="..\libs\celt\vq.c"
>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
CompileAs="1"
/>
</FileConfiguration>
</File>
</Filter>
</Filter>