Skip to content

Commit

Permalink
cmake: Add option USE_NEXT_AUDIO_TS
Browse files Browse the repository at this point in the history
When the option is enabled, the error will be calculated by the libobs
new API `obs_source_get_next_audio_timestamp`.
  • Loading branch information
norihiro committed Aug 23, 2024
1 parent 2263971 commit 66f8569
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ else()
endif()

option(USE_FFMPEG_SWRESAMPLE "Use swresample from FFmpeg" OFF)
option(USE_NEXT_AUDIO_TS "Use the new API obs_source_get_next_audio_timestamp" ON)

if(USE_ERIKD_LIBSAMPLERATE_DEPS OR USE_ERIKD_LIBSAMPLERATE_SYSTEM)
set(USE_ERIKD_LIBSAMPLERATE ON)
Expand Down
1 change: 1 addition & 0 deletions src/plugin-macros.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,

#cmakedefine USE_FFMPEG_SWRESAMPLE
#cmakedefine USE_ERIKD_LIBSAMPLERATE
#cmakedefine USE_NEXT_AUDIO_TS

#define blog(level, msg, ...) blog(level, "[" PLUGIN_NAME "] " msg, ##__VA_ARGS__)

Expand Down

0 comments on commit 66f8569

Please sign in to comment.