Fix lazy audio path resolution for GPU streaming
Some checks are pending
GPU Worker CI/CD / test (push) Waiting to run
GPU Worker CI/CD / deploy (push) Blocked by required conditions

Audio playback path was being resolved during parsing when database
may not be ready, causing fallback to non-existent path. Now resolves
lazily when stream starts, matching how audio analyzer works.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-04 11:32:04 +00:00
parent ef3638d3cf
commit ed617fcdd6
9 changed files with 159 additions and 57 deletions

View File

@@ -10,8 +10,8 @@
(require-primitives "streaming")
;; Audio analyzer (provides beat detection and energy levels)
;; Paths relative to working directory (project root)
(def music (streaming:make-audio-analyzer "woods_half/halleluwah.webm"))
;; Using friendly name for asset resolution
(def music (streaming:make-audio-analyzer "woods-audio"))
;; Audio playback path (for sync with video output)
(audio-playback "woods_half/halleluwah.webm")
(audio-playback "woods-audio")

View File

@@ -10,16 +10,16 @@
(require-primitives "streaming")
;; Video sources array
;; Paths relative to working directory (project root)
;; Using friendly names for asset resolution
(def sources [
(streaming:make-video-source "woods/1.webm" 10)
(streaming:make-video-source "woods/2.webm" 10)
(streaming:make-video-source "woods/3.webm" 10)
(streaming:make-video-source "woods/4.webm" 10)
(streaming:make-video-source "woods/5.webm" 10)
(streaming:make-video-source "woods/6.webm" 10)
(streaming:make-video-source "woods/7.webm" 10)
(streaming:make-video-source "woods/8.webm" 10)
(streaming:make-video-source "woods-1" 10)
(streaming:make-video-source "woods-2" 10)
(streaming:make-video-source "woods-3" 10)
(streaming:make-video-source "woods-4" 10)
(streaming:make-video-source "woods-5" 10)
(streaming:make-video-source "woods-6" 10)
(streaming:make-video-source "woods-7" 10)
(streaming:make-video-source "woods-8" 10)
])
;; Per-pair effect config: rotation direction, rotation ranges, zoom ranges