1
0

template.c: correct endianness of buffer_size

This commit is contained in:
Intel A80486DX2-66 2023-12-30 14:15:34 +03:00
parent 793983a2b8
commit 9a344bd50c
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -209,7 +209,7 @@ main(void)
fwrite(&block_align, 2, 1, output_file); // L : BlockAlign : 2 fwrite(&block_align, 2, 1, output_file); // L : BlockAlign : 2
fwrite(&bit_depth, 2, 1, output_file); // L : BitsPerSample : 2 fwrite(&bit_depth, 2, 1, output_file); // L : BitsPerSample : 2
fwrite("data", 1, 4, output_file); // B : Subchunk2ID : 4 fwrite("data", 1, 4, output_file); // B : Subchunk2ID : 4
fwrite(&buffer_size, 4, 1, output_file); // B : Subchunk2Size : 4 fwrite(&buffer_size, 4, 1, output_file); // L : Subchunk2Size : 4
// 4. write sample data // 4. write sample data
fwrite(buffer, sizeof(SAMPLE_TYPE), buffer_size, output_file); fwrite(buffer, sizeof(SAMPLE_TYPE), buffer_size, output_file);