Better icons: device/app icon chains, volume icons, app icon (#2)
CI / check (push) Successful in 10s
CI / native (push) Successful in 1m10s

This commit was merged in pull request #2.
This commit is contained in:
nandi committed 2026-11-23 01:07:41 +00:00
1 parent f08f241edb
commit 02b08cb471
21 files changed
+658 -70

No files matched your search

+1 -1
View File
@@ -3,5 +3,5 @@
# not expand $(pkg-config ...) in flags, so append them here. Works for both
# compiling stubs and linking the final executable.
set -e
PKGS="${MOONMIX_PKGS:-libpipewire-0.3 wireplumber-0.5 gtk4}"
PKGS="${MOONMIX_PKGS:-libpipewire-0.3 wireplumber-0.5 gtk4 gio-unix-2.0}"
exec "${MOONMIX_CC:-cc}" "$@" $(pkg-config --cflags --libs $PKGS)
+6 -4
View File
@@ -25,11 +25,13 @@ context.objects = [
{ factory = adapter
args = { factory.name = support.null-audio-sink
node.name = "test_speakers" node.description = "Test Speakers"
device.form-factor = "speaker"
media.class = "Audio/Sink" audio.position = [ FL FR ]
monitor.channel-volumes = true object.linger = true } }
{ factory = adapter
args = { factory.name = support.null-audio-sink
node.name = "test_headphones" node.description = "Test Headphones"
device.form-factor = "headphone"
media.class = "Audio/Sink" audio.position = [ FL FR ]
object.linger = true } }
]
@@ -39,7 +41,7 @@ context.modules = [
args = {
node.description = "Test Microphone"
capture.props = { node.name = "test_mic_capture" node.passive = true audio.position = [ MONO ] }
playback.props = { node.name = "test_mic" media.class = "Audio/Source" audio.position = [ MONO ] }
playback.props = { node.name = "test_mic" device.form-factor = "microphone" media.class = "Audio/Source" audio.position = [ MONO ] }
} }
]
CONF
@@ -87,10 +89,10 @@ DATA=23040000
{ printf 'RIFF'; le32 $((DATA + 36)); printf 'WAVEfmt '; le32 16
printf '\001\000\002\000'; le32 48000; le32 192000; printf '\004\000\020\000'
printf 'data'; le32 $DATA; head -c $DATA /dev/urandom; } > "$LOGS/noise.wav"
{ pw-play -P '{ application.name = "Test Player" media.name = "Smoke test tone" }' \
{ pw-play -P '{ application.name = "Test Player" application.icon-name = "applications-multimedia-symbolic" media.name = "Smoke test tone" }' \
"$LOGS/noise.wav"; echo "pw-play exited with $?"; } >"$LOGS/play.log" 2>&1 & PIDS="$PIDS $!"
pw-cat --record --raw --rate 48000 --channels 1 --format s16 \
-P '{ application.name = "Test Recorder" media.name = "Mic capture" }' \
-P '{ application.name = "Test Recorder" application.icon-name = "audio-input-microphone" media.name = "Mic capture" }' \
/dev/null >"$LOGS/record.log" 2>&1 & PIDS="$PIDS $!"
wait_for 'Test Player | .*-> ' || true
@@ -154,7 +156,7 @@ if [ -n "$SHOTS" ] && [ -x "$GUI" ]; then
if command -v gtk4-broadwayd >/dev/null; then
gtk4-broadwayd :5 >/dev/null 2>&1 & PIDS="$PIDS $!"
sleep 1
GDK_BACKEND=broadway BROADWAY_DISPLAY=:5 MOONMIX_SCREENSHOT="$SHOTS" \
MOONMIX_ICON_DIR="$ROOT/data/icons" GDK_BACKEND=broadway BROADWAY_DISPLAY=:5 MOONMIX_SCREENSHOT="$SHOTS" \
timeout 30 "$GUI" || fail=1
else
echo "gtk4-broadwayd not found; skipping GUI"