Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
mkckr0 committed Mar 29, 2024
1 parent dfc8282 commit 2d76b84
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions server-core/src/linux/audio_manager_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,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;
pw_stream_get_time_n(user_data->stream, &time, sizeof(time));
spdlog::trace("stream time: now:{} rate:{}/{} ticks:{} delay:{} queued:{} buffered:{} buffers:{} avail:{} ",
pw_stream_get_time(user_data->stream, &time);
spdlog::trace("now:{} rate:{}/{} ticks:{} delay:{} queued:{}",
time.now,
time.rate.num, time.rate.denom,
time.ticks, time.delay, time.queued, time.buffered,
time.queued_buffers, time.avail_buffers);
time.ticks, time.delay, time.queued);
}, data);
struct timespec timeout = {0, 1}, interval = {1, 0};
pw_loop_update_timer(loop, timer, &timeout, &interval, false);
Expand Down

0 comments on commit 2d76b84

Please sign in to comment.