Patches item #1822001, was opened at 2007-10-29 11:08 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1822001...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: puredata Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: IOhannes m zmölnig (zmoelnig) Assigned to: Miller Puckette (millerpuckette) Summary: use of t_float/t_sample instead of "float"
Initial Comment: i am currently trying to build a Pd which is based on "double" instead of "float".
in m_pd.h there are special types defined "t_sample" (for signals) and "t_float" (for messages).
in theory this makes it simple to switch between different precisions (e.g. "float" vs. "double") in both the signal and the message domain (independently).
unfortunately, in practice this does not work, because the special types are not always used (in fact, the code seems to refer more often to the types "float" instead of "t_float"/"t_sample").
the attached patch changes the occurences of "float" to "t_float" or "t_sample", depending on the context: - t_sample is only used for signals - t_float is used for messages
note#1: for CLASS_MAINSIGNALIN i use t_float instead of t_sample (the original code suggested t_sample instead); this makes more sense to me, as we are really dealing with messages(!), which eventually become samples
note#2: this patch only deals with trivial changes from "float" to "t_float"/"t_sample". i have not touched all the float-magic that is used in d_osc yet
note#3: the tgz contains patches for each file separately. this is to make reading easier...
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1822001...