Patches item #1822010, was opened at 2007-10-29 11:24 Message generated for change (Settings changed) made by zmoelnig You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1822010...
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: Closed Resolution: Accepted
Priority: 5 Private: No Submitted By: IOhannes m zmölnig (zmoelnig) Assigned to: Miller Puckette (millerpuckette) Summary: hardcoded sample-type in soundfile-IO
Initial Comment: the current implementation in d_soundfile.c assumes that both t_sample and t_float are "float".
this is not necessarily true.
additionally it assumes that typeof(t_sample) and typeof(t_float) are identically.
this is not necessarily true.
based on the assumption that (number)arrays are of type t_float and signals are of type t_sample, the attached patch provides 2 extra functions for xferin/xferout that use different types for reading/writing soundfiles.
basically it provides: soundfile_xferin_sample() (reading soundfile to signal) soundfile_xferin_float() (reading soundfile to table)
soundfile_xferout_sample() (writing soundfile from signal) soundfile_xferout_float() (writing soundfile from table)
----------------------------------------------------------------------
Comment By: Miller Puckette (millerpuckette) Date: 2007-12-18 23:56
Message: Logged In: YES user_id=313747 Originator: NO
taken.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1822010...