fix(02): revise plans based on checker feedback

This commit is contained in:
2026-03-26 11:44:32 +01:00
parent 08f1a87a54
commit 6cbf0366da
4 changed files with 115 additions and 7 deletions
@@ -127,7 +127,7 @@ type WindowSnapshot struct {
6. Verify CGo build works by running `CGO_ENABLED=1 go build ./...` — should succeed with no errors.
NOTE: Do NOT add go-audio/wav. Per research recommendation, skip the WAV intermediate and write PCM bytes directly to LameWriter. This eliminates a dependency and avoids the io.WriteSeeker complication.
NOTE: Skipping go-audio/wav — per CONTEXT.md Claude's Discretion grant for "WAV intermediate format usage," the WAV intermediate is unnecessary. Phase 2 research (Pitfall 4) confirmed go-audio/wav requires io.WriteSeeker which bytes.Buffer does not satisfy. Writing interleaved int16 PCM bytes directly to go-lame's LameWriter.Write() is simpler and eliminates one dependency. CLAUDE.md updated to reflect this decision.
</action>
<verify>
<automated>go version && gcc --version && ffprobe -version && grep "go-lame" go.mod && CGO_ENABLED=1 go build ./...</automated>