Breeze builds and runs with no raylib anywhere, on Ziran 7fbc8152 and Kryon b5a61b37, with plot, entity, apps, css and game2d pinned to that Kryon, so the lock has one Kryon and no raylib package. - Linux and Windows run on Kryon's SDL2 and Cairo desktop host; WebP decodes with the linked libwebp (KRYON_WEBP_LINKED). - Android owns its NativeActivity loop on Kryon's android_runtime: Pixmap on the activity's surface, android_touch input and Android's typefaces, paced to the app's frame target. The CMake build drops breeze_raylib, GLES and the raylib link wraps, and links Kryon's fopen wrapper. - The browser reaches Kryon's canvas modules directly. - Audio is Ziran's std audio: its mixer, the SDL, AAudio and OpenSL ES sinks, the WAV, MP3 and Vorbis decoders and the audio package's Opus. The MP3 and Vorbis archives come from Ziran's own codec recipes. The browser keeps Kryon's Web Audio. - Host modules choose the desktop host, Android, the canvas or, for native tests that select none, a headless host with no window, input or audio device. host_keys.zi and text_input_host.zi replace raylib_host.zi and raylib_text_input.zi; the log is one implementation, with logcat on Android and the C runtime's open flags on Windows. - The Makefile, Click packaging, CI and release workflows build no raylib. - Tests: radio, app log, asset files, DPI, legacy sessions, sync recovery and the Android JNI bridge run without raylib stubs; voice playback is a Ziran test of real Ogg Opus narration through Ziran's mixer. Tests that only exercised raylib internals are removed. - AppsControllerSha256 is the controller built from Apps b96d9afe on this graph. Local tests: Linux desktop window, Habits UI and the Ziran and native tests above pass on a private Xvfb; the Android debug APK runs on a Pixel 4a; the Windows package runs under Wine on a private Xvfb. Co-Authored-By: Claude Opus 5.5 <[email protected]>
61 lines
2.6 KiB
Bash
61 lines
2.6 KiB
Bash
#!/bin/sh
|
|
# Real Ogg Opus narration and Lumi guide playback to completion through
|
|
# Ziran's mixer and the audio package's libopus (tests/voice_audio_play_behavior.zi).
|
|
#
|
|
# sh tests/voice_audio_play_test.sh ZIRAN_BIN_DIR LIBOPUS_A [PRACTICES] [astral [LOCALE]]
|
|
set -eu
|
|
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
|
bin=$1
|
|
libopus_a=$2
|
|
practices=${3:-"$root/build/packages/practices"}
|
|
suite=${4:-standard}
|
|
locale=${5:-all}
|
|
case "$suite" in
|
|
standard|astral) ;;
|
|
*) echo "Unknown playback suite: $suite" >&2; exit 1 ;;
|
|
esac
|
|
work=$root/build/voice-audio-play-test
|
|
rm -rf "$work/c"
|
|
mkdir -p "$work/c"
|
|
"$bin/ziran" build --project --offline --target=c --no-main \
|
|
--root "$root" --module-path "$root/tests" \
|
|
-o "$work/c" "$root/tests/voice_audio_play_behavior.zi"
|
|
# shellcheck disable=SC2046
|
|
"${CC:-cc}" -std=c11 -O1 -DZIRAN_BOUNDS_CHECK -ffunction-sections -fdata-sections \
|
|
-Wl,--gc-sections -w -I"$root/build/packages/ziran/include" \
|
|
$(find "$work/c" -type d -printf ' -iquote %p') $(find "$work/c" -type f -name '*.c') \
|
|
"$libopus_a" -lm -lpthread -o "$work/test"
|
|
|
|
clips=""
|
|
if [ "$suite" = astral ]; then
|
|
# The six exercises' first cues, in every supported locale or one.
|
|
locales=$(cut -d '|' -f 1 "$root/locales/index.txt")
|
|
if [ "$locale" != all ]; then
|
|
printf '%s\n' "$locales" | rg -Fx -- "$locale" >/dev/null || {
|
|
echo "Unsupported astral narration locale: $locale" >&2; exit 1;
|
|
}
|
|
locales=$locale
|
|
fi
|
|
for code in $locales; do
|
|
for exercise in foundation current elevator spin rope roll_out; do
|
|
clips="$clips $practices/astral_projection/voice/$code/astral_text_${exercise}_01.ogg"
|
|
done
|
|
done
|
|
else
|
|
# The accepted Russian and Czech exports with measured decoder headroom,
|
|
# observed as shipped, never normalized or replaced by the test.
|
|
for clip in taichi/voice/en/tai_chi_text_73f9fa69 guide/voice/en/practice_guide_start \
|
|
guide/voice/ru/diary_guide_write guide/voice/ru/habits_guide_coins \
|
|
guide/voice/ru/habits_guide_meditation_edit guide/voice/ru/habits_guide_meditation_views \
|
|
guide/voice/ru/settings_guide_sections guide/voice/cs/habits_guide_overview_grid \
|
|
guide/voice/cs/habits_guide_meditation_session_data; do
|
|
clips="$clips $practices/$clip.ogg"
|
|
done
|
|
fi
|
|
for clip in $clips; do
|
|
[ -f "$clip" ] || { echo "voice_audio_play_test: missing $clip" >&2; exit 1; }
|
|
done
|
|
# shellcheck disable=SC2086
|
|
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY timeout --kill-after=2s 300s "$work/test" $clips
|
|
echo "Real Ogg Opus narration and Lumi guide playback ($suite) passed"
|