Okay, it looks like setting the length to 0x7fffffff produces the closest to correct behavior in most programs you're likely to try. It's a fringe case anyway that only occurs if you stream the wav (use the raw driver instead) or kill -9 the player (in which case you have bigger problems). The patch does fix things so that the header is written first and the correct sizes are written last. --- Stan Seibert <HR NOSHADE> <UL> <LI>TEXT/PLAIN attachment: wav-header.patch </UL> -------------- next part -------------- A non-text attachment was scrubbed... Name: wav-header.patch Type: application/octet-stream Size: 5391 bytes Desc: not available Url : http://lists.xiph.org/pipermail/vorbis-dev/attachments/20010122/40857ed3/wav-header-0001.obj