13
0

change superclock ticks per second (no need for 11,13,17)

This commit is contained in:
Paul Davis 2017-08-04 17:40:35 -04:00
parent ad1a711863
commit 6e2e54d384

View File

@ -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; }