From 0c54f2944691254c853a1d33c1fa336aeb441ce4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 8 Jul 2022 17:30:56 +0200 Subject: [PATCH] output/PipeWire: document field "volume" --- src/output/plugins/PipeWireOutputPlugin.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/output/plugins/PipeWireOutputPlugin.cxx b/src/output/plugins/PipeWireOutputPlugin.cxx index 66133a2b2..ee0463cc9 100644 --- a/src/output/plugins/PipeWireOutputPlugin.cxx +++ b/src/output/plugins/PipeWireOutputPlugin.cxx @@ -86,7 +86,10 @@ class PipeWireOutput final : AudioOutput { uint32_t target_id = PW_ID_ANY; - float volume = 1.0; + /** + * The current volume level (0.0 .. 1.0). + */ + float volume = 1.0f; PipeWireMixer *mixer = nullptr; unsigned channels;