From 8f6822fd25a4659271f003d8a8e8eb2ef917edab Mon Sep 17 00:00:00 2001 From: Mooneer Salem Date: Sat, 5 Feb 2022 15:10:25 -0800 Subject: [PATCH] Disable extra logging of Pulse latency. --- src/audio/PulseAudioDevice.cpp | 4 ++-- src/audio/PulseAudioDevice.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/audio/PulseAudioDevice.cpp b/src/audio/PulseAudioDevice.cpp index e63f2d733..ee92a3a89 100644 --- a/src/audio/PulseAudioDevice.cpp +++ b/src/audio/PulseAudioDevice.cpp @@ -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 @@ -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(userdata); diff --git a/src/audio/PulseAudioDevice.h b/src/audio/PulseAudioDevice.h index 9167113ca..4e24346a6 100644 --- a/src/audio/PulseAudioDevice.h +++ b/src/audio/PulseAudioDevice.h @@ -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 };