changeset 9026:ccbfff7debf8

When the file is not finished to be written, it has a temporary length of 0. It is more logical to write an infinite length. (sox does this) patch by Alain Daurat <daurat@tiscali.fr>
author arpi
date Sun, 19 Jan 2003 16:49:02 +0000
parents ae0507e107b7
children e59cda3414b6
files libao2/ao_pcm.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_pcm.c	Sun Jan 19 16:44:32 2003 +0000
+++ b/libao2/ao_pcm.c	Sun Jan 19 16:49:02 2003 +0000
@@ -50,7 +50,8 @@
 /* init with default values */
 static struct WaveHeader wavhdr = {
 	le2me_32(WAV_ID_RIFF),
-	le2me_32(0x00000000),
+        /* same conventions than in sox/wav.c/wavwritehdr() */
+	le2me_32(0x7ffff024),
 	le2me_32(WAV_ID_WAVE),
 	le2me_32(WAV_ID_FMT),
 	le2me_32(16),
@@ -61,7 +62,7 @@
 	le2me_16(4),
 	le2me_16(16),
 	le2me_32(WAV_ID_DATA),
-	le2me_32(0x00000000)
+	le2me_32(0x7ffff000)
 };
 
 static FILE *fp = NULL;