[PD-dev] [ pure-data-Patches-1822010 ] hardcoded sample-type in soundfile-IO

SourceForge.net noreply at sourceforge.net
Mon Oct 29 11:24:49 CET 2007


Patches item #1822010, was opened at 2007-10-29 11:24
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=1822010&group_id=55736

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: 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)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1822010&group_id=55736




More information about the Pd-dev mailing list