diff --git a/sexp_effects/primitive_libs/streaming_gpu.py b/sexp_effects/primitive_libs/streaming_gpu.py index f36a82e..fbd38cb 100644 --- a/sexp_effects/primitive_libs/streaming_gpu.py +++ b/sexp_effects/primitive_libs/streaming_gpu.py @@ -499,4 +499,18 @@ __all__ = [ 'gpu_composite', 'get_primitives', 'check_hwdec_available', + 'PRIMITIVES', ] + + +# Import CPU primitives from streaming.py and include them in PRIMITIVES +# This ensures audio analysis primitives are available when streaming_gpu is loaded +def _get_cpu_primitives(): + from sexp_effects.primitive_libs import streaming + return streaming.PRIMITIVES + + +PRIMITIVES = _get_cpu_primitives().copy() + +# Add GPU-specific primitives +# (The GPU video source will be added by create_cid_primitives in the task)