On Tue, 9 Sep 2003 04:42:51 +0200
Pierre Jarillon <[EMAIL PROTECTED]> wrote:

> Le Lundi 8 Septembre 2003 10:10, Erik de Castro Lopo a �crit :
> > On Sun, 7 Sep 2003 23:54:01 -0700
> 
> > > Does the .wav 2gb limit exist in linux?
> >
> > I believe that the limit is acutally 4G. However, that is not an OS limit,
> > but rather a limit resulting from how the file headers are structured.
> 
> I have found this document : Large File Support in Linux

As the author of libsndfile, I can assure you that libsndfile supports
large files (ie > 2G) for all file formats that allow such files. 

However, WAV is one that doesn't. The problem is that the file length is
stored in the file header as an unsigned 32 bit int, restricting WAV 
files to being < 4G in size.

Furthermore, I believe Win95/98/ME do not support files larger than
2G, hence many windows programs add this extra limitation when writing
WAV files.

Of the file formats the libsndfile does support, only Sound Forge's
W64 explicitly supports file > 4G. Some of the other formats also
allows it because they have no length field in the header or they
allow the setting the file length field to -1 which is meant to represent 
"unknown" (ie AU format).

Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo  [EMAIL PROTECTED] (Yes it's valid)
+-----------------------------------------------------------+
Reporter: "What do you think of Western Civilisation?"
M.K. Gandhi: "I think it would be a good idea."


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to