Skip to content
Snippets Groups Projects
Commit 355d5dab authored by Jim's avatar Jim
Browse files

Move timestamp smooth threshold to media-io

parent 883d0500
No related branches found
No related tags found
No related merge requests found
...@@ -18,3 +18,7 @@ ...@@ -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
...@@ -519,9 +519,6 @@ static inline uint64_t conv_frames_to_time(size_t frames) ...@@ -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)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment