fix: keep external audio discovery diagnostic only
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# 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
|
||||
|
||||
- `AudioLibrary` retains 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 `FileAccess` header reads were removed.
|
||||
- All `AudioStream*.load_from_file` calls, stream players, and external-load helper paths were removed.
|
||||
- `has_playable_ambience()` and `has_playable_sfx()` are public diagnostics and currently always return `false`.
|
||||
- `set_ambience_context` and `play_sfx` still 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.
|
||||
Reference in New Issue
Block a user