feat: add fps INT output to PrismAudioFeatureExtractor

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-28 11:05:03 +01:00
parent 5b62be0447
commit d0c9a72782
+4 -3
View File
@@ -105,8 +105,8 @@ class PrismAudioFeatureExtractor:
},
}
RETURN_TYPES = ("PRISMAUDIO_FEATURES",)
RETURN_NAMES = ("features",)
RETURN_TYPES = ("PRISMAUDIO_FEATURES", "INT")
RETURN_NAMES = ("features", "fps")
FUNCTION = "extract_features"
CATEGORY = PRISMAUDIO_CATEGORY
@@ -134,7 +134,8 @@ class PrismAudioFeatureExtractor:
if os.path.exists(cached_path):
print(f"[PrismAudio] Using cached features: {cached_path}")
loader = PrismAudioFeatureLoader()
return loader.load_features(cached_path)
features, = loader.load_features(cached_path)
return (features, round(fps))
# Save frames to temp file (lossless .npy, no codec roundtrip)
import time