From a7a8783bb4d38373765720a331b59b97b5df1cdc Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 13 Oct 2022 18:05:49 -0600 Subject: [PATCH] increase superclock_ticks_per_second to provide integer handling for NTSC (following Facebook "flicks") --- libs/temporal/superclock.cc | 2 +- libs/temporal/temporal/superclock.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/temporal/superclock.cc b/libs/temporal/superclock.cc index e0ae205b7c..c90df0a6bd 100644 --- a/libs/temporal/superclock.cc +++ b/libs/temporal/superclock.cc @@ -19,7 +19,7 @@ #include "temporal/superclock.h" #ifndef COMPILER_MSVC -Temporal::superclock_t Temporal::_superclock_ticks_per_second = 56448000; /* 2^10 * 3^2 * 5^3 * 7^2 */ +Temporal::superclock_t Temporal::_superclock_ticks_per_second = 282240000 ; /* 2^10 * 3^2 * 5^4 * 7^2 */ #endif int Temporal::most_recent_engine_sample_rate = 48000; /* have to pick something as a default */ diff --git a/libs/temporal/temporal/superclock.h b/libs/temporal/temporal/superclock.h index d4182f8a28..5b41af68fd 100644 --- a/libs/temporal/temporal/superclock.h +++ b/libs/temporal/temporal/superclock.h @@ -32,7 +32,7 @@ typedef int64_t superclock_t; #ifndef COMPILER_MSVC extern superclock_t _superclock_ticks_per_second; #else - static superclock_t _superclock_ticks_per_second = 56448000; /* 2^10 * 3^2 * 5^3 * 7^2 */ + static superclock_t _superclock_ticks_per_second = 282240000; /* 2^10 * 3^2 * 5^4 * 7^2 */ #endif extern bool scts_set;