comparison libao2/ao_pcm.c @ 16243:178b8b4a62c6

Set block_align in header, seems MatLab can not handle files without. Patch by Pedro Larroy Tovar (pedro at larroy dot com).
author reimar
date Wed, 17 Aug 2005 11:27:11 +0000
parents de08cc60fd7e
children f580a7755ac5
comparison
equal deleted inserted replaced
16242:07343c1a5983 16243:178b8b4a62c6
118 118
119 wavhdr.channels = le2me_16(ao_data.channels); 119 wavhdr.channels = le2me_16(ao_data.channels);
120 wavhdr.sample_rate = le2me_32(ao_data.samplerate); 120 wavhdr.sample_rate = le2me_32(ao_data.samplerate);
121 wavhdr.bytes_per_second = le2me_32(ao_data.bps); 121 wavhdr.bytes_per_second = le2me_32(ao_data.bps);
122 wavhdr.bits = le2me_16(bits); 122 wavhdr.bits = le2me_16(bits);
123 wavhdr.block_align = le2me_16(ao_data.channels * (bits / 8));
123 124
124 wavhdr.data_length=le2me_32(0x7ffff000); 125 wavhdr.data_length=le2me_32(0x7ffff000);
125 wavhdr.file_length = wavhdr.data_length + sizeof(wavhdr) - 8; 126 wavhdr.file_length = wavhdr.data_length + sizeof(wavhdr) - 8;
126 127
127 mp_msg(MSGT_AO, MSGL_INFO, MSGTR_AO_PCM_FileInfo, ao_outputfilename, 128 mp_msg(MSGT_AO, MSGL_INFO, MSGTR_AO_PCM_FileInfo, ao_outputfilename,