[PD-dev] buffer access with flext
fbar at footils.org
Sun Apr 6 23:40:38 CEST 2003
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:
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...)
Frank Barknecht _ ______footils.org__
More information about the Pd-dev