[PD-dev] d_soundfile.c MAXBUFSIZE
David Plans Casal
main at davidcasal.com
Tue Feb 28 12:54:39 CET 2006
Hello everyone,
Would someone be able to explain to me why d_soundfile.c has the
following buffer size allocation?
#define MAXBUFSIZE 16777216 /* arbitrary; just don't want to hang
malloc */
I'm not sure about the 'hanging malloc' thing...does it mean that
enlarging that buffer size could screw with memory allocation because
it we might 'run out'?
AFAICT, 16777216 is about 6.3 minutes. If I need more like 26460000
(10m) allocation, could I just alter MAXBUFSIZE and recompile? Or is
there a saner way of doing it, so that I don't end up with a 'custom'
pd?
d
--
David Plans Casal
Researcher, UEA Studios
d.casal at uea dot ac dot uk
http://www.davidcasal.com
More information about the Pd-dev
mailing list