template.c: correct endianness of buffer_size
This commit is contained in:
parent
793983a2b8
commit
9a344bd50c
@ -209,7 +209,7 @@ main(void)
|
||||
fwrite(&block_align, 2, 1, output_file); // L : BlockAlign : 2
|
||||
fwrite(&bit_depth, 2, 1, output_file); // L : BitsPerSample : 2
|
||||
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
|
||||
fwrite(buffer, sizeof(SAMPLE_TYPE), buffer_size, output_file);
|
||||
|
Loading…
Reference in New Issue
Block a user