diff --git a/src/template.c b/src/template.c index 1cf0e6e..1d09b65 100644 --- a/src/template.c +++ b/src/template.c @@ -203,10 +203,10 @@ main(int argc, char** argv) PRODUCT /* sample data */, fmt_data_length = 16 /* length of format data before this value in the file format structure */, - sample_rate = SAMPLE_RATE; + sample_rate = SAMPLE_RATE, + byte_rate = (SAMPLE_RATE * BIT_DEPTH * CHANNELS) / 8; const uint16_t fmt_type = 1, // format type is PCM channels = CHANNELS, - byte_rate = (SAMPLE_RATE * BIT_DEPTH * CHANNELS) / 8, block_align = (BIT_DEPTH * CHANNELS) / 8, bit_depth = BIT_DEPTH > 8 ? BIT_DEPTH : 8;