diff options
Diffstat (limited to 'libao2')
-rw-r--r-- | libao2/ao_pcm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libao2/ao_pcm.c b/libao2/ao_pcm.c index ae7490d74f..dda741bd79 100644 --- a/libao2/ao_pcm.c +++ b/libao2/ao_pcm.c @@ -50,7 +50,8 @@ struct WaveHeader /* 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 @@ static struct WaveHeader wavhdr = { le2me_16(4), le2me_16(16), le2me_32(WAV_ID_DATA), - le2me_32(0x00000000) + le2me_32(0x7ffff000) }; static FILE *fp = NULL; |