In CI (PipeWire 1.4) pw-cat playing raw audio never created a stream,
from /dev/zero or from a regular file, so the Playback tab and the move
action could not be tested. Play a generated WAV file with pw-play
instead (header written in shell; the container has no python) and log
the player's exit status for diagnosis.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Streams that appear while WirePlumber is still starting up can wedge its
event queue: no default sink is chosen, nothing is linked and volume
changes are dropped. This made the smoke test fail intermittently
locally and in CI. The test now polls moonmix-probe until a default sink
exists before starting the streams, then until the playback stream is
linked; four local runs in a row pass.
Also play a regular file instead of /dev/zero (PipeWire 1.4's pw-cat
exited silently on it in CI) and change the volume of the active sink,
since CI's PipeWire 1.4 did not apply a volume set on a suspended
null sink.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The smoke test only checked exit codes, so CI passed the probe steps
even though volume and mute never changed. Each step now asserts the
expected state after the action and prints pw-cat, WirePlumber and node
diagnostics on failure.
The test microphone was a null-audio-sink with a Source media class.
WirePlumber's event dispatcher intermittently stalls on such a node and
then links nothing and ignores volume changes, which is what failed in
CI. It is now a loopback virtual source, like echo-cancel; three local
runs in a row pass. Screenshots are re-rendered from the new setup.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Linking MoonBit's native runtime on the bullseye runner fails with
undefined pthread symbols (glibc 2.31 needs -lpthread), so the check
job now only runs the wasm-gc tests and the native model tests move to
the debian:trixie job that already builds natively.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pure check and test job on the default runner; native build and
headless smoke test in a debian:trixie container (bullseye lacks
WirePlumber 0.5).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tools/smoke-test.sh starts a private PipeWire + WirePlumber with null
sinks/source and test streams, exercises every action through
moonmix-probe and renders the GUI offscreen under broadway.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hand-written minimal GTK4 binding (one dispatch callback, tag table,
signal suppression during programmatic updates) and the GUI: Playback,
Recording, Output Devices and Input Devices tabs with linked volume
sliders up to 150%, mute, default-device toggle and per-stream device
selector, updated live by diffing view rows. Includes a .desktop file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
Cubic percent <-> linear channelVolumes conversions (pavucontrol scale,
up to 150%), dB formatting, balance-preserving linked slider, a reducer
applying WirePlumber node/link/default events and per-tab view rows,
all covered by moon tests that run on any target.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>