# HG changeset patch # User arpi # Date 1027253620 0 # Node ID 8411ea0d907886e85deb5b80249b2097197cc91c # Parent cb1180ccac76359a6104faaa42f2dde413f619f3 endianess fix by Colin Leroy diff -r cb1180ccac76 -r 8411ea0d9078 libao2/ao_pcm.c --- 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);