Add live peak meters (pavucontrol-style level bars)
Each row on Playback, Output Devices and Input Devices gets a level bar under its slider. A meter is a small capture pw_stream on WirePlumber's pw_core with the properties pipewire-pulse gives pavucontrol's peak streams (stream.monitor, target.object, stream.capture.sink for sinks); its process callback folds samples into a peak that a 40 ms GUI timer reads, maps with the slider's cubic curve and decays smoothly. - Only the visible tab is metered; output/stream meters are passive. - stream.monitor nodes (ours and pavucontrol's) are hidden from the tabs. - moonmix-probe gains `meter <id>`; the smoke test now plays noise and checks the stream and sink meters see it. - Screenshot mode holds the meters still before capturing, since a constantly redrawing window never yields a frame under broadway. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
92ae5cdbfe
commit
f08f241edb
17 files changed
+503
-18
No files matched your search
@@ -12,6 +12,8 @@ pub fn init_gtk() -> Bool
|
||||
|
||||
pub fn label(String) -> Widget
|
||||
|
||||
pub fn level_bar() -> Widget
|
||||
|
||||
pub fn load_css(String) -> Unit
|
||||
|
||||
pub fn notebook(on_switch? : (Int32) -> Unit) -> Widget
|
||||
@@ -58,6 +60,7 @@ pub fn Widget::set_child(Self, Self) -> Unit
|
||||
pub fn Widget::set_hexpand(Self, Bool) -> Unit
|
||||
pub fn Widget::set_icon(Self, String) -> Unit
|
||||
pub fn Widget::set_items(Self, Array[String], Int32) -> Unit
|
||||
pub fn Widget::set_level(Self, Double) -> Unit
|
||||
pub fn Widget::set_margins(Self, Int32) -> Unit
|
||||
pub fn Widget::set_page(Self, Int32) -> Unit
|
||||
pub fn Widget::set_sensitive(Self, Bool) -> Unit
|
||||
|
||||
Reference in new issue
Block a user