[PD-dev] [ pure-data-Patches-1312885 ] 2GB limit for soundfiles

SourceForge.net noreply at sourceforge.net
Tue Oct 4 15:30:56 CEST 2005


Patches item #1312885, was opened at 2005-10-04 15:30
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=1312885&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: bugfix
Status: Open
Resolution: None
Priority: 8
Submitted By: IOhannes m zmölnig (zmoelnig)
Assigned to: Miller Puckette (millerpuckette)
Summary: 2GB limit for soundfiles

Initial Comment:
using [readsf~] and [writesf~] you cannot read/write
files that are larger than 2GB;
while this limit seems big for soundfiles, it is easily
reached when doing multi-channel recordings (24
channels @ 44.1kHz take ~15 minutes to reach this limit)

to enable support for large files (>2GB), one has to
use 64bit variants of open and friends (open64(),...)

attached is a patch that enables the use of these
variants in d_soundfile.c when "_LARGEFILE64_SOURCE" is
defined.
the patch also changes the configure.in in order to
check whether defining "_LARGEFILE64_SOURCE" is a good
idea;
you can turn off largefile support via the
"--disable-largefile" option.

(btw, max/msp cannot write soundfiles > 2GB too)

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

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




More information about the Pd-dev mailing list