Skip to content

Commit

Permalink
fix pw_stream_get_time_n compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
mkckr0 committed Oct 26, 2024
1 parent f43a34d commit d798b35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server-core/src/linux/audio_manager_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,11 @@ void audio_manager::do_loopback_recording(std::shared_ptr<network_manager> netwo
auto timer = pw_loop_add_timer(loop, [](void *data, uint64_t expirations){
auto user_data = (struct user_data_t*)data;
struct pw_time time{};
#if PW_CHECK_VERSION(0, 3, 50)
pw_stream_get_time_n(user_data->stream, &time, sizeof(time));
#else
pw_stream_get_time(user_data->stream, &time);
#endif
spdlog::trace("now:{} rate:{}/{} ticks:{} delay:{} queued:{}",
time.now,
time.rate.num, time.rate.denom,
Expand Down

0 comments on commit d798b35

Please sign in to comment.