From 2fa23a2d54f2f4f73814b52cacb09b9dd98f3369 Mon Sep 17 00:00:00 2001 From: scorpion-26 <58082714+scorpion-26@users.noreply.github.com> Date: Tue, 21 Mar 2023 17:49:10 +0100 Subject: [PATCH] Audio: Log SetVolume*** events --- src/PulseAudio.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PulseAudio.h b/src/PulseAudio.h index 90d8f70..5ac7ef1 100644 --- a/src/PulseAudio.h +++ b/src/PulseAudio.h @@ -191,6 +191,7 @@ namespace PulseAudio double valClamped = std::clamp(value, 0., 1.); // I'm too lazy to implement the c api for this. Since it will only be called when needed and doesn't pipe, it shouldn't be a problem to // fallback for a command + LOG("Audio: Set volume of sink: " << valClamped); std::string cmd = "pamixer --set-volume " + std::to_string((uint32_t)(valClamped * 100)); info.sinkVolume = valClamped; blockUpdate = true; @@ -202,6 +203,7 @@ namespace PulseAudio double valClamped = std::clamp(value, 0., 1.); // I'm too lazy to implement the c api for this. Since it will only be called when needed and doesn't pipe, it shouldn't be a problem to // fallback for a command + LOG("Audio: Set volume of source: " << valClamped); std::string cmd = "pamixer --default-source --set-volume " + std::to_string((uint32_t)(valClamped * 100)); info.sourceVolume = valClamped; blockUpdate = true;