1
0

bytebeat_compiler.py: extract BITS_PER_BYTE

This commit is contained in:
Intel A80486DX2-66 2024-07-14 00:13:25 +03:00
parent fc5612219d
commit cd927b83fb
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -12,6 +12,9 @@ from sys import stdin, stdout, exit
from typing import Dict, Union from typing import Dict, Union
import subprocess import subprocess
# Definitions
BITS_PER_BYTE = 8
# Paths # Paths
PATHS = { PATHS = {
"src_dir": "src", "src_dir": "src",
@ -244,7 +247,7 @@ if __name__ == "__main__":
"fp_return_type": args.floating_point, "fp_return_type": args.floating_point,
"channels": args.channels, "channels": args.channels,
"length": samples, "length": samples,
"wav_product": gen_length * (args.bit_depth // 8), "wav_product": gen_length * (args.bit_depth // BITS_PER_BYTE),
"gen_length": gen_length, "gen_length": gen_length,
"sequential_mode": args.mode == "sequential", "sequential_mode": args.mode == "sequential",
"block_size": args.block_size, "block_size": args.block_size,