bytebeat_compiler.py: extract BITS_PER_BYTE
This commit is contained in:
parent
8192def161
commit
bf0c103588
@ -13,6 +13,9 @@ from typing import Dict, Union
|
|||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
|
# Definitions
|
||||||
|
BITS_PER_BYTE = 8
|
||||||
|
|
||||||
# Paths
|
# Paths
|
||||||
PATHS = {
|
PATHS = {
|
||||||
"src_dir": "src",
|
"src_dir": "src",
|
||||||
@ -339,7 +342,7 @@ if __name__ == "__main__":
|
|||||||
"loop_end_minus_1": loop_end - 1,
|
"loop_end_minus_1": loop_end - 1,
|
||||||
"initial_time": skip_first_samples,
|
"initial_time": skip_first_samples,
|
||||||
"repeat_times": args.repeat,
|
"repeat_times": args.repeat,
|
||||||
"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,
|
||||||
|
Loading…
Reference in New Issue
Block a user