hi list,
how is it possible to access an audio array in a flext external?
there seems to be no tutorial patch for that. and i had a look at the xsample objects and the flsupport.h but i had some problems understanding the use of the buffer class. is it just an interface to access the array?
i just want to get the pointer to the array.
thanks...
Tim mailto:TimBlechmann@gmx.net ICQ: 96771783 http://www.nyds-exp-discogs.tk -- The only people for me are the mad ones, the ones who are mad to live, mad to talk, mad to be saved, desirous of everything at the same time, the ones who never yawn or say a commonplace thing, but burn, burn, burn, like fabulous yellow roman candles exploding like spiders across the stars and in the middle you see the blue centerlight pop and everybody goes "Awww!" Jack Kerouac
Hallo, Tim Blechmann hat gesagt: // Tim Blechmann wrote:
how is it possible to access an audio array in a flext external?
there seems to be no tutorial patch for that. and i had a look at the xsample objects and the flsupport.h but i had some problems understanding the use of the buffer class. is it just an interface to access the array?
i just want to get the pointer to the array.
Create it for example this way:
t_symbol *s;
bool delay = false; flext::buffer * buf = NULL; buf = new flext::buffer(s, delayed);
then do something with buf->Data();
You might want to take a look at buftable.[h|cpp] in externals/footils/syncgrain on the PD-CVS. It's a small helper or wrapper class to convert between flext::buffer and SndObj::table and maybe easier to dig than xsample (but then, maybe not...)
ciao