[RTcmix-discuss] memory allocation proposal
John Gibson
johgibso at indiana.edu
Mon Jan 10 17:42:21 EST 2005
On Mon, 10 Jan 2005, Brad Garton wrote:
> On Mon, 10 Jan 2005, John Gibson wrote:
>
> > I thought Brad meant the default value you pass to makeconnection,
> > but maybe I'm wrong. Anyway, that value is not available to anything
> > outside of the PField.
>
> I think I'm confused -- by "default value" I meant the value present as
> the p-field in the init() member function.
Oh, then I was misinterpreting you all along. There's nothing special
about the first value that init receives -- it's just the first value
in the stream coming from the PField object. So if that object was
created by a call to maketable, it will be the first element in the
table. For a PField created by a call to makeconnection, it will
probably be the value specified as a default in the makeconnection
call, unless the source has already begun to generate valid data
by the time init is called.
JG
More information about the RTcmix-discuss
mailing list