[CLAM] Analysing a piece of CLAM::Audio
David García Garzón
dgarcia at iua.upf.edu
Thu May 28 03:04:41 PDT 2009
I guess is the other way arround:
auInput.GetAudioChunk(startTime, endTime, auChunk);
A Dijous, 28 de maig de 2009 07:42:33, Саня Девайкин va escriure:
> 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
> > > CLAM at iua.upf.es
> > > http://clam.iua.upf.edu
>
> _______________________________________________
> CLAM mailing list
> CLAM at iua.upf.es
> http://clam.iua.upf.edu
--
David García Garzón
(Work) dgarcia at iua dot upf anotherdot edu
http://www.iua.upf.edu/~dgarcia
More information about the clam-users
mailing list