[Clam-devel] main.cxx for Constructing_and_playing_a_simple_network: GetAudioFile()

Han, Yushen yushen.han at gmail.com
Sun Mar 30 15:16:35 PDT 2008

Hi, everyone

I write to report something about the main.cxx code at this page:

Having played with the Network Editor with the GUI for a while,
I was trying to CODE with CLAM by constructing and playing a simple network

I used the SConstruct file from
to build my simple network ( contained in main.cxx ).

However, it complained

scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
-I/usr/local/Qt4.3/include/qt4 -I/usr/local/Qt4.3/include/qt4/QtCore
-I/usr/local/Qt4.3/include/qt4/QtGui -I/usr/local/include
-I/opt/local/include main.cxx
main.cxx: In function 'int main(int, char**)':
main.cxx:26: error: 'class CLAM::Processing' has no member named 'GetAudioFile'
scons: *** [main.o] Error 1

The problem is located in
"int length = network.GetProcessing(reader).GetAudioFile().GetHeader().GetLength()/1000;"

I looked into network.hxx which did have a GetProcessing(), but
processing.hxx did not have GetAudioFile() at all.
(See http://clam.iua.upf.edu/doc/CLAM-doxygen/Processing_8hxx-source.html)

I even searched all the CLAM source code for "GetHeader" but did not get any.

Is this a bug in the tutorial or in the code?

Maybe you have encountered this a lot since it is almost the first
developing document
for "Programming with CLAM"...

I look forward to your information.

Best regards,
Han, Yushen

More information about the clam-devel mailing list