Skip to content

Commit

Permalink
Disable extra logging of Pulse latency.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiw committed Feb 5, 2022
1 parent cb33436 commit 8f6822f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/audio/PulseAudioDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void PulseAudioDevice::start()
pa_stream_set_overflow_callback(stream_, &PulseAudioDevice::StreamOverflowCallback_, this);
pa_stream_set_moved_callback(stream_, &PulseAudioDevice::StreamMovedCallback_, this);
pa_stream_set_state_callback(stream_, &PulseAudioDevice::StreamStateCallback_, this);
#if 1
#if 0
pa_stream_set_latency_update_callback(stream_, &PulseAudioDevice::StreamLatencyCallback_, this);
#endif // 0

Expand Down Expand Up @@ -317,7 +317,7 @@ void PulseAudioDevice::StreamMovedCallback_(pa_stream *p, void *userdata)
}
}

#if 1
#if 0
void PulseAudioDevice::StreamLatencyCallback_(pa_stream *p, void *userdata)
{
PulseAudioDevice* thisObj = static_cast<PulseAudioDevice*>(userdata);
Expand Down
2 changes: 1 addition & 1 deletion src/audio/PulseAudioDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class PulseAudioDevice : public IAudioDevice
static void StreamOverflowCallback_(pa_stream *p, void *userdata);
static void StreamMovedCallback_(pa_stream *p, void *userdata);
static void StreamStateCallback_(pa_stream *p, void *userdata);
#if 1
#if 0
static void StreamLatencyCallback_(pa_stream *p, void *userdata);
#endif // 0
};
Expand Down

0 comments on commit 8f6822f

Please sign in to comment.