| Age | Commit message (Collapse) | Author |
|
The GLFW Wayland drag-and-drop crash fix (previous commit) did NOT resolve
drag-and-drop on the real target (labwc), so abandon the GLFW path entirely
instead of patching it further.
Why SDL: raylib ships a first-class SDL backend (PLATFORM_DESKTOP_SDL) that
implements file drop via SDL_DROPFILE. GLFW 3.4 (vendored in raylib 6.0) has
broken Wayland drag-and-drop (wl_data_offer NULL source_actions/action
listeners -> libwayland wl_abort on drag, glfw/glfw#2835) AND its X11 backend
segfaults on WSLg (Mesa GLX). SDL's window/EGL/drag-drop is mature on BOTH
real Wayland (labwc) and WSLg, so one backend covers both targets with no
vendor patches and no X11/Wayland special-casing.
Changes (desktop only; web build stays Emscripten+GLFW, untouched):
- build.zig: build raylib PLATFORM=PLATFORM_DESKTOP_SDL (SDL_INCLUDE_PATH/
LIBRARY_PATH = system SDL2); link SDL2 instead of wayland-*/xkbcommon/EGL.
- Revert the GLFW patch (patches/glfw-wayland-dnd-crash.patch removed; the
build.zig patch-application step removed).
- Docs: environment.md / study-player.md / BUILDING.md / SCREENSHOT.md updated
to reflect the SDL backend + the SDL2 system dependency.
The RmlUi binding is backend-agnostic (rlgl render + raylib IsKeyDown input,
zero glfw* calls), so the swap is transparent to it.
Prerequisite on the cyberdeck: install SDL2 dev (sudo pacman -S sdl2 or
sdl2-compat) before building.
Verified on the laptop (WSLg): build green; binary runs under SDL
(Platform backend: DESKTOP (SDL)), window opens, no GLX segfault, RmlUi fonts
load, mp3 loads from argv (132300 frames), no crash. Interactive drag-drop
itself still needs user testing on the cyberdeck (SDL_DROPFILE path).
|
|
Cross-ref from study-player.md drag-drop section to environment.md so the
next agent touching drag-drop finds the real root cause (GLFW/Wayland, not
the Ruby CheckFileDrop code).
|
|
- mrbgems/study_audio: native C scanner (scan_silence) avoids Ruby array overflow
for large audio files; returns normalized silence region pairs directly
- Core.detect_silence: pure Ruby algorithm (threshold 0.015, min 0.75s)
for testing with synthetic data; pad_silence_regions (0.25s padding)
- Core portion navigation: find_silence_at, current_speaking_portion,
total_speaking_portions, portion_seek_target (2 frames into padding zone),
in_padding_zone?, speaking_portion_start
- Input: V/B keys for prev/next portion navigation
- Draw: section counter (N/total) displayed below play state
- build_config.rb: added study_audio gem to both desktop and web builds
- Runtime: silence_regions, raw_silence_regions, analysis_done fields
- Load system: triggers C scan_silence after audio load, pads with pure Ruby
- Knowledge doc updated with Phase 3 scar tissue (array limits, gem naming,
Wayland screenshot gap)
Verification: build clean, pure Core smoke test passes (CRuby), game runs
with country.mp3 without overflow, load system processes the file.
|
|
(no require, int32_t, keyword_init, ARGV, non-blocking seek)
|
|
|
|
|