[PD-dev] [ pure-data-Patches-1638701 ] 2GB limit for reading!
SourceForge.net
noreply at sourceforge.net
Sun May 20 05:53:10 CEST 2007
Patches item #1638701, was opened at 2007-01-18 07:15
Message generated for change (Comment added) made by millerpuckette
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1638701&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: feature
Status: Open
Resolution: None
Priority: 7
Private: No
Submitted By: IOhannes m zmölnig (zmoelnig)
Assigned to: Miller Puckette (millerpuckette)
Summary: 2GB limit for reading!
Initial Comment:
my patch [1312885] fixed the problem with writing files with [writesf~] which are larger than 2GB.
however, this does not work for reading soundfiles, since open_via_path() uses the non-largefile functions read() and fstat().
this patch (against current CVS 18.01.2006) for s_path.c allows to open huge files via open_via_path(), and therefore large files can be played back via [readsf~].
again, this only works on *nix's.
----------------------------------------------------------------------
>Comment By: Miller Puckette (millerpuckette)
Date: 2007-05-19 20:53
Message:
Logged In: YES
user_id=313747
Originator: NO
I applied this and changed one "lseek" (I think the only important one)
to
use "__off64_t" where appropriate. I don't see how this could do any
harm,
and who knows, perhaps it will actually work.
----------------------------------------------------------------------
Comment By: IOhannes m zmölnig (zmoelnig)
Date: 2007-01-18 12:03
Message:
Logged In: YES
user_id=564396
Originator: YES
there is also a problem with the "skipframes" option, since pd uses "int"
as return value from lseek() (and lseek64()), which is not recommended.
it should be (off_t) and (__off64_t) resp.
however there might be even more problems involved.
i'll have to investigate...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1638701&group_id=55736
More information about the Pd-dev
mailing list