Move timestamp smooth threshold to media-io

master
jp9000 2014-08-30 11:51:37 -07:00
parent 883d05007f
commit 355d5dab6e
2 changed files with 4 additions and 3 deletions

View File

@ -18,3 +18,7 @@
#pragma once #pragma once
#define MAX_AV_PLANES 8 #define MAX_AV_PLANES 8
/* time threshold in nanoseconds to ensure audio timing is as seamless as
* possible */
#define TS_SMOOTHING_THRESHOLD 70000000ULL

View File

@ -519,9 +519,6 @@ static inline uint64_t conv_frames_to_time(size_t frames)
#define MAX_TS_VAR 5000000000ULL #define MAX_TS_VAR 5000000000ULL
/* maximum time that timestamp can jump in nanoseconds */ /* maximum time that timestamp can jump in nanoseconds */
#define MAX_TIMESTAMP_JUMP 2000000000ULL #define MAX_TIMESTAMP_JUMP 2000000000ULL
/* time threshold in nanoseconds to ensure audio timing is as seamless as
* possible */
#define TS_SMOOTHING_THRESHOLD 70000000ULL
static inline void reset_audio_timing(obs_source_t source, uint64_t timetamp) static inline void reset_audio_timing(obs_source_t source, uint64_t timetamp)
{ {