1.3 KiB
1.3 KiB
S4 round 2 — external audio ruling
Decision
The S4 prototype may discover admitted audio filenames under the configured ASCII external roots, but it must never ask Godot to read, decode, import, or play those files. This is a safety boundary, not a codec-validation problem: a superficial signature cannot establish that a file is complete or safe for a downstream loader.
Implementation
AudioLibraryretains best-effort, error-free directory discovery for the documented roots and admitted extensions.- The last discovered ambience/SFX paths remain diagnostic-only public getters.
- All byte-signature checks and
FileAccessheader reads were removed. - All
AudioStream*.load_from_filecalls, stream players, and external-load helper paths were removed. has_playable_ambience()andhas_playable_sfx()are public diagnostics and currently always returnfalse.set_ambience_contextandplay_sfxstill accept their supported requests and cannot block or change game-state resolution.
Verification coverage
Unit and E2E coverage create both a structurally nominal WAV and a truncated/invalid WAV in the external layout. They assert discovery remains diagnostic-only, neither file is playable through the public API, and combat still resolves normally. The README now states that discovery does not promise readability or playback.