Thu 14 Apr 2005 12:08:18 PM UTC, original submission:
first attempt to compile, gives me the following error:
/usr/include/soundtouch/STTypes.h:69:14: #error "conflicting sample types defined"
further investigation .. my soundtouch-libs are compiled with FLOAT_SAMPLES. So I patched the file soundmanger.h:
--- src/soundmanager.h 2005-04-06 13:18:55.000000000 +0200
+++ src/soundmanager.h 2005-04-14 11:48:49.000000000 +0200
@@ -20,7 +20,7 @@
#ifndef SOUNDMANAGER_H
#define SOUNDMANAGER_H
#include "defs.h"
-#define INTEGER_SAMPLES
+#define FLOAT_SAMPLES
#include <soundtouch/SoundTouch.h>
#include <qmemarray.h>
#include <qstring.h>
and start recompile ...
this ends up in:
g++ -c -pipe -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -Wall -W -g -D_REENTRANT -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -I/usr/lib/qt3/mkspecs/default -I. -I../src -I/usr/include -I/usr/lib/qt3/include -o soundmanager.o soundmanager.cpp
In file included from /usr/include/g++/backward/iostream.h:31,
from defs.h:23,
from soundmanager.h:22,
from soundmanager.cpp:20:
/usr/include/g++/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
soundmanager.cpp: In constructor `SoundManager::SoundManager()':
soundmanager.cpp:30: warning: converting to `int' from `double'
soundmanager.cpp:31: warning: converting to `int' from `double'
soundmanager.cpp: In member function `QMemArray<long int> SoundManager::analyse_freq_domain(double, int, long int, long int)':
soundmanager.cpp:173: warning: converting to `long int' from `double'
soundmanager.cpp:221: warning: comparison between signed and unsigned integer expressions
soundmanager.cpp:232: warning: comparison between signed and unsigned integer expressions
soundmanager.cpp:239: warning: converting to `int' from `double'
soundmanager.cpp:240: warning: comparison between signed and unsigned integer expressions
soundmanager.cpp: In member function `QMemArray<long int> SoundManager::analyse_time_domain(double, int, long int, long int)':
soundmanager.cpp:476: warning: converting to `long int' from `float'
soundmanager.cpp:513: warning: converting to `long int' from `double'
soundmanager.cpp:568: warning: comparison between signed and unsigned integer expressions
soundmanager.cpp:584: warning: comparison between signed and unsigned integer expressions
soundmanager.cpp:592: warning: converting to `int' from `double'
soundmanager.cpp:594: warning: comparison between signed and unsigned integer expressions
soundmanager.cpp:622: warning: comparison between signed and unsigned integer expressions
soundmanager.cpp: In member function `void SoundManager::resample(std::list<long int, std::allocator<long int> >, double)':
soundmanager.cpp:663: error: no matching function for call to `SoundTouch::putSamples(short int*&, int)'
/usr/include/soundtouch/SoundTouch.h:200: error: candidates are: virtual void SoundTouch::putSamples(const SAMPLETYPE*, unsigned int)
soundmanager.cpp:666: error: no matching function for call to `SoundTouch::receiveSamples(short int*&, int&)'
/usr/include/soundtouch/FIFOSamplePipe.h:177: error: candidates are: virtual uint FIFOProcessor::receiveSamples(SAMPLETYPE*, unsigned int)
/usr/include/soundtouch/FIFOSamplePipe.h:189: error: virtual uint FIFOProcessor::receiveSamples(unsigned int)
soundmanager.cpp:683: error: no matching function for call to `SoundTouch::receiveSamples(short int*&, int&)'
/usr/include/soundtouch/FIFOSamplePipe.h:177: error: candidates are: virtual uint FIFOProcessor::receiveSamples(SAMPLETYPE*, unsigned int)
/usr/include/soundtouch/FIFOSamplePipe.h:189: error: virtual uint FIFOProcessor::receiveSamples(unsigned int)
soundmanager.cpp: In member function `float** SoundManager::compute_subband_energies(int, int, int, int, long int, long int, float&, float&)':
soundmanager.cpp:1104: warning: unused variable `int lastChunk'
soundmanager.cpp: In member function `QMemArray<SoundManager::beat> SoundManager::findPreciseBeat(QMemArray<SoundManager::beat>, int, int, float, float)':
soundmanager.cpp:1527: warning: comparison between signed and unsigned integer expressions
soundmanager.cpp: In member function `void SoundManager::removeBeatLineAt(long int)':
soundmanager.cpp:1633: warning: comparison between signed and unsigned integer expressions
soundmanager.cpp: In member function `void SoundManager::updateMaxAmplitudes(QMemArray<SoundManager::beat>, int)':
soundmanager.cpp:1647: warning: comparison between signed and unsigned integer expressions
soundmanager.cpp: In member function `QMemArray<SoundManager::beat> SoundManager::removeRedundantBeatlines(QMemArray<SoundManager::beat>, int)':
soundmanager.cpp:1669: warning: comparison between signed and unsigned integer expressions
soundmanager.cpp: In member function `void SoundManager::getBand(float, float, long int, long int, int, int, bool)':
soundmanager.cpp:1418: warning: unused parameter `bool inverted'
soundmanager.cpp: In member function `QMemArray<long int> SoundManager::analyse_time_domain(double, int, long int, long int)':
soundmanager.cpp:348: warning: unused parameter `const int window'
soundmanager.cpp: In member function `QMemArray<long int> SoundManager::analyse_aubio_onsets(double, int, long int, long int)':
soundmanager.cpp:260: warning: unused parameter `const int window'
soundmanager.cpp: In member function `QMemArray<long int> SoundManager::analyse_freq_domain(double, int, long int, long int)':
soundmanager.cpp:78: warning: unused parameter `const int window'
make[1]: *** [soundmanager.o] Fehler 1
make[1]: Leaving directory `/home/graffyh/packages/BUILD/freecycle/src'
make: *** [sub-src] Fehler 2
conclusion: freecycle wants a soundtouch with INTEGER_SAMPLES ;)
any ideas, ho to fix that? I need the FLOAT_SAMPLES in soundtouch.
THX
TOni
|