[Clam-devel] main.cxx for Constructing_and_playing_a_simple_network: GetAudioFile()
yushen.han at gmail.com
Sun Mar 30 15:16:35 PDT 2008
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 ...
g++ -o main.o -c -DQT_CORE_LIB -DQT_GUI_LIB -DCLAM_FLOAT -D_DEBUG
-DUSE_PTHREADS=1 -DUSE_XERCES=1 -DCLAM_USE_XML -DUSE_SNDFILE=1
-DUSE_OGGVORBIS=1 -DWITH_VORBIS=1 -DUSE_MAD=1 -DWITH_MAD=1 -DUSE_ID3=1
-DUSE_PORTAUDIO=1 -D__MACOSX_CORE__ -DUSE_RTAUDIO=1 -DUSE_FFTW3=1
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.
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
for "Programming with CLAM"...
I look forward to your information.
More information about the clam-devel