Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: keep the song-slice helper private to the performance-shot service (#8977)

[._.]/ Adam Eivyf77737e28e8b
diff --git a/server/services/musicVideo/performanceShot.js b/server/services/musicVideo/performanceShot.js
index f688e10b8f..d6f3a42a22 100644
--- a/server/services/musicVideo/performanceShot.js
+++ b/server/services/musicVideo/performanceShot.js
@@ -54,10 +54,8 @@ const hashFile = (path) => new Promise((resolve, reject) => {
/**
* Cut `[startSec, endSec]` of `sourcePath` into a new PCM WAV at `outPath`.
- * Exported for the synthetic-audio contract test; production callers go
- * through `preparePerformanceShot`.
*/
-export async function sliceAudioWindow(sourcePath, outPath, { startSec, endSec }) {
+async function sliceAudioWindow(sourcePath, outPath, { startSec, endSec }) {
const ffmpeg = await findFfmpeg();
if (!ffmpeg) throw new ServerError('ffmpeg is required to slice the song for a performance shot', { status: 500, code: 'FFMPEG_MISSING' });
const result = await runFfmpegProcess({