changeset 6762:8411ea0d9078

endianess fix by Colin Leroy <colin@colino.net>
author arpi
date Sun, 21 Jul 2002 12:13:40 +0000
parents cb1180ccac76
children e29f95ed5d36
files libao2/ao_pcm.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_pcm.c	Sat Jul 20 16:38:31 2002 +0000
+++ b/libao2/ao_pcm.c	Sun Jul 21 12:13:40 2002 +0000
@@ -122,6 +122,7 @@
 	if(ao_pcm_waveheader && fseek(fp, 0, SEEK_SET) == 0){ /* Write wave header */
 		wavhdr.file_length = wavhdr.data_length + sizeof(wavhdr) - 8;
 		wavhdr.file_length = le2me_32(wavhdr.file_length);
+		wavhdr.data_length = le2me_32(wavhdr.data_length);
 		fwrite(&wavhdr,sizeof(wavhdr),1,fp);
 	}
 	fclose(fp);