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>
67 lines
1.1 KiB
Plaintext
67 lines
1.1 KiB
Plaintext
// Generated using `moon info`, DON'T EDIT IT
|
|
package "geordi/moonmix/wp"
|
|
|
|
import {
|
|
"geordi/moonmix/model",
|
|
}
|
|
|
|
// Values
|
|
pub fn meter_start(Int32, @model.NodeKind) -> Bool
|
|
|
|
pub fn meter_stop(Int32) -> Unit
|
|
|
|
pub fn meter_stop_all() -> Unit
|
|
|
|
pub fn meter_take(Int32) -> Double?
|
|
|
|
pub fn move_stream(Int32, Int32) -> Bool
|
|
|
|
pub fn node_ids() -> Array[Int32]
|
|
|
|
pub fn node_prop(Int32, String) -> String
|
|
|
|
pub fn on_event((Event) -> Unit) -> Unit
|
|
|
|
pub fn quit() -> Unit
|
|
|
|
pub fn read_defaults() -> @model.Event
|
|
|
|
pub fn read_links() -> Array[@model.Link]
|
|
|
|
pub fn read_node(Int32) -> @model.Node?
|
|
|
|
pub fn run() -> Unit
|
|
|
|
pub fn set_default_sink(Int32) -> Bool
|
|
|
|
pub fn set_default_source(Int32) -> Bool
|
|
|
|
pub fn set_mute(Int32, Bool) -> Bool
|
|
|
|
pub fn set_volumes(Int32, Array[Double]) -> Bool
|
|
|
|
pub fn start() -> Bool
|
|
|
|
pub fn timeout(Int32, Int32) -> Unit
|
|
|
|
pub fn to_model_events(Event) -> Array[@model.Event]
|
|
|
|
// Errors
|
|
|
|
// Types and methods
|
|
pub(all) enum Event {
|
|
NodeAdded(Int32)
|
|
NodeChanged(Int32)
|
|
NodeRemoved(Int32)
|
|
LinksChanged
|
|
DefaultsChanged
|
|
Ready
|
|
Disconnected
|
|
PluginError
|
|
Timeout(Int32)
|
|
}
|
|
|
|
// Type aliases
|
|
|
|
// Traits
|