fix: preserve GPUI lifetime and avoid WASAPI silence warnings
This commit is contained in:
@@ -116,9 +116,13 @@ if [[ "${mode}" == x11 ]]; then
|
||||
video_driver=x11
|
||||
fi
|
||||
|
||||
# A moving 60 FPS picture with a 440 Hz tone, standing in for a game.
|
||||
# A moving 60 FPS picture, optionally without any audio stream for idle tests.
|
||||
pattern="testsrc2=size=${width}x${height}:rate=60,format=yuv420p[out0]"
|
||||
if [[ "${CLIPBIN_RIG_NO_AUDIO:-0}" != 1 ]]; then
|
||||
pattern+=';sine=frequency=440:sample_rate=48000[out1]'
|
||||
fi
|
||||
SDL_VIDEODRIVER="${video_driver}" ffplay -loglevel error -fs -window_title clipbin-test-game \
|
||||
-f lavfi "testsrc2=size=${width}x${height}:rate=60,format=yuv420p[out0];sine=frequency=440:sample_rate=48000[out1]" \
|
||||
-f lavfi "${pattern}" \
|
||||
> "${rig_dir}/game.log" 2>&1 & pids+=($!)
|
||||
echo "${pids[-1]}" > "${rig_dir}/game.pid"
|
||||
if [[ "${mode}" == x11 ]]; then
|
||||
|
||||
Reference in New Issue
Block a user