diff options
| author | Claude <noreply@anthropic.com> | 2026-11-22 10:28:47 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-11-22 10:28:47 +0000 |
| commit | 1dba48b7b75bcb712c068758625282e0e2f9ef14 (patch) | |
| tree | 786a7e76c56df5c1f3e0cb1c2e6d99f554cc154a /runtime/src/thread_stacks.cpp | |
| parent | f85582e23d4ab9e19acbf694358f137d6b8531b1 (diff) | |
audio: start ffmpeg without the caller's stdin
ffmpeg reads stdin for key commands. Every ffmpeg call in tools/audio_wav.py
(audio_digest, decode) and make_game.py (decode_xma) inherited the caller's
stdin, so a run started in the background of a terminal stopped at its first
decode ("Stopped (tty output)"), and input piped to the caller was swallowed.
tests/test_audio_wav.py's own ffmpeg fixture calls did the same: in a
`while read` loop over tests/ with ffmpeg on PATH, they ate the next file
names and four test files were silently skipped.
Give every ffmpeg call stdin=subprocess.DEVNULL, and add fake-ffmpeg tests
that check each call reads nothing from stdin: the decode run and the resume
check of audio_wav.py, and make_game.decode_xma().
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GQWmXYJ1uVSCTNfvSjPMF7
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions