浏览代码

Move timestamp smooth threshold to media-io

jp9000 11 年之前
父节点
当前提交
355d5dab6e
共有 2 个文件被更改,包括 4 次插入3 次删除
  1. 4 0
      libobs/media-io/media-io-defs.h
  2. 0 3
      libobs/obs-source.c

+ 4 - 0
libobs/media-io/media-io-defs.h

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

+ 0 - 3
libobs/obs-source.c

@@ -519,9 +519,6 @@ static inline uint64_t conv_frames_to_time(size_t frames)
 #define MAX_TS_VAR          5000000000ULL
 /* maximum time that timestamp can jump in nanoseconds */
 #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)
 {