Thank you for reply! But I still can't get it work: the desired CLAM::Audio contains only zeros..
Here is a piece of code: CLAM::Audio auInput; // This is for reading file from the begining till the end CLAM::Audio auChunk; // This is for chunk /* Some code for reading data into auInput */ auChunk.SetSize(1024); CLAM::TTime startTime = 2048; CLAM::TTime endTime = 3072; auChunk.GetAudioChunk(startTime, endTime, auInput); And here I cout auInput.GetBuffer()[i] and auChunk.GetBuffer()[i] for checking the results. auInput contains the data from file, but auChunk contains only zeros. > Is Audio::GetAudioChunk what you need? > http://clam-project.org/doc/CLAM-devel- > doxygen/classCLAM_1_1Audio.html#8c6e39bf60e51457b007c0b6dc0dbba0 > A Dimarts, 26 de maig de 2009 09:40:50, Саня Девайкин va escriure: > > Hi! > > How do I get a short PIECE of CLAM::Audio data array to analyse? For > > example, I need to analyse a number of frames, starting from 34221 frame? > > Or I need to copy a number of frames (not all of them) from one CLAM::Audio > > object to another. Thank you in advice! > > > > _______________________________________________ > > CLAM mailing list > > [email protected] > > http://clam.iua.upf.edu > > -- > David García Garzón > (Work) dgarcia at iua dot upf anotherdot edu > http://www.iua.upf.edu/~dgarcia _______________________________________________ CLAM mailing list [email protected] http://clam.iua.upf.edu
