A browser extension reports audible tabs to moonmix-tabs-host, which matches them to PipeWire streams by time and publishes the names for the mixer; streams of one tab share a row. Ambiguous streams keep the browser's name. Without the extension, a browser's only running stream shows its MPRIS title. The smoke test no longer claims real audio hardware. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
44 lines
595 B
Plaintext
44 lines
595 B
Plaintext
// Generated using `moon info`, DON'T EDIT IT
|
|
package "geordi/moonmix/tabs"
|
|
|
|
import {
|
|
"geordi/moonmix/model",
|
|
}
|
|
|
|
// Values
|
|
pub fn browser_pid() -> Int32
|
|
|
|
pub fn files() -> Array[@model.TabFile]
|
|
|
|
pub fn listen() -> Unit
|
|
|
|
pub fn media_titles() -> Map[Int32, String]
|
|
|
|
pub fn message() -> String
|
|
|
|
pub fn now_ms() -> Int64
|
|
|
|
pub fn on_event((Event) -> Unit) -> Unit
|
|
|
|
pub fn prune() -> Unit
|
|
|
|
pub fn publish(@model.TabFile) -> Bool
|
|
|
|
pub fn unpublish() -> Unit
|
|
|
|
pub fn watch() -> Unit
|
|
|
|
// Errors
|
|
|
|
// Types and methods
|
|
pub(all) enum Event {
|
|
Message
|
|
Eof
|
|
Files
|
|
Media
|
|
}
|
|
|
|
// Type aliases
|
|
|
|
// Traits
|