From 6e2e54d384f7fbd248506abdd60c130bcd3ca1da Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 4 Aug 2017 17:40:35 -0400 Subject: [PATCH] change superclock ticks per second (no need for 11,13,17) --- tools/bb/bb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bb/bb.h b/tools/bb/bb.h index e9d89ddf0b..68c1fbe709 100644 --- a/tools/bb/bb.h +++ b/tools/bb/bb.h @@ -12,7 +12,7 @@ typedef uint64_t superclock_t; -static const superclock_t superclock_ticks_per_second = 1235025792000; // 2^10 * 3^4 * 5^3 * 7^2 * 11 * 13 * 17 +static const superclock_t superclock_ticks_per_second = 508032000; // 2^10 * 3^4 * 5^3 * 7^2 inline superclock_t superclock_to_samples (superclock_t s, int sr) { return (s * sr) / superclock_ticks_per_second; } inline superclock_t samples_to_superclock (int samples, int sr) { return (samples * superclock_ticks_per_second) / sr; }