From 8e68c840a11757409143a7c39dc7be7fd94970e8 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Tue, 9 Jan 2024 23:14:48 +0300 Subject: [PATCH] bytebeat_compiler.py: fix condition bug --- bytebeat_compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bytebeat_compiler.py b/bytebeat_compiler.py index f3ffcb7..4a69bd5 100644 --- a/bytebeat_compiler.py +++ b/bytebeat_compiler.py @@ -148,7 +148,7 @@ if __name__ == "__main__": final_sample_rate_code = "" if args.faster_sample_ratio_math: args.precalculate_ratio = True - if not args.final_sample_rate is None and not args.precalculate_ratio: + if not args.final_sample_rate is None and args.precalculate_ratio: if args.faster_sample_ratio_math: sample_rate_ratio = args.sample_rate / args.final_sample_rate final_sample_rate_code = f"w *= {sample_rate_ratio}L;"