Thin C layer over libwireplumber-0.5: an object manager for audio nodes, links and the default metadata, plus the mixer-api and default-nodes-api plugins (what wpctl uses internally) for volume, mute and defaults. Streams are moved by setting target.object in the default metadata, as pipewire-pulse does. No CLI tools are spawned. tools/pkg-cc wraps the C compiler to append pkg-config flags because moon does not expand $(pkg-config ...) in moon.pkg link options. moonmix-probe prints what each tab shows and can apply one action. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
59 lines
972 B
Plaintext
59 lines
972 B
Plaintext
// Generated using `moon info`, DON'T EDIT IT
|
|
package "geordi/moonmix/wp"
|
|
|
|
import {
|
|
"geordi/moonmix/model",
|
|
}
|
|
|
|
// Values
|
|
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
|