bugFreecycle - Bugs: bug #12685, freecycle compile problem -...

 
 

bug #12685: freecycle compile problem - soundtouch

Submitted by:  None
Submitted on:  Thu 14 Apr 2005 12:08:18 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Predrag Viceic <pviceic>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 21 Apr 2005 06:47:21 PM UTC, comment #3:

ok, I compiled the freecycle-0.21alpha_UPDATED.tar.bz2 package with my soundtouch lib.... no more errors.

big thx
Toni

Anonymous
Wed 20 Apr 2005 12:04:42 PM UTC, comment #2:

Ok, I have updated the CVS with the code that supports FLOAT_SAMPLES. You're welcome to give-it a try!

Predrag

Predrag Viceic <pviceic>
Project AdministratorIn charge of this item.
Wed 20 Apr 2005 11:20:45 AM UTC, comment #1:

I see. The problem is that the default SoundTouch install compiles with INTEGER_SAMPLES, and that means "lot of users with INTEGER_SAMPLES support" ;))

I would also prefer having FLOAT_SAMPLES as the default, or at last having the possibility of changing that on runtime. Well I'll try to add some #defines ..

Predrag

Predrag Viceic <pviceic>
Project AdministratorIn charge of this item.
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

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 20 Apr 2005 12:04:42 PM UTCpviceicStatusConfirmed=>Fixed
  Open/ClosedOpen=>Closed
Wed 20 Apr 2005 11:20:45 AM UTCpviceicStatusNone=>Confirmed
  Assigned toNone=>pviceic

Back to the top


Powered by Savane 3.1-cleanup1