1
0

bytebeat_compiler.py: rename w to time

This commit is contained in:
Intel A80486DX2-66 2024-05-19 20:44:23 +03:00
parent f862603642
commit 3bab4c8373
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -165,10 +165,10 @@ if __name__ == "__main__":
if args.precalculate_ratio and not args.final_sample_rate is None: if args.precalculate_ratio and not args.final_sample_rate is None:
if args.faster_sample_ratio_math: if args.faster_sample_ratio_math:
sample_rate_ratio = args.sample_rate / args.final_sample_rate sample_rate_ratio = args.sample_rate / args.final_sample_rate
final_sample_rate_code = f"w *= {sample_rate_ratio}L;" final_sample_rate_code = f"time *= {sample_rate_ratio}L;"
else: else:
sample_rate_ratio = args.final_sample_rate / args.sample_rate sample_rate_ratio = args.final_sample_rate / args.sample_rate
final_sample_rate_code = f"w /= {sample_rate_ratio}L;" final_sample_rate_code = f"time /= {sample_rate_ratio}L;"
args.sample_rate = args.final_sample_rate args.sample_rate = args.final_sample_rate
final_sample_rate = \ final_sample_rate = \