From 0bd31d93a8b5510b89b4375d507ce75ca1d2f38f Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 9 Mar 2026 23:41:09 +0100 Subject: [PATCH] =?UTF-8?q?Fix:=20Lautst=C3=A4rke=20w=C3=A4hrend=20Wiederg?= =?UTF-8?q?abe=20steuerbar=20(inlineVolume=20immer=20aktiv)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bei PCM-Memory-Cache wurde inlineVolume nur aktiviert wenn vol != 1, dadurch fehlte das Volume-Objekt auf der AudioResource und apiSetVolumeLive konnte die Lautstärke nicht live ändern. Co-Authored-By: Claude Opus 4.6 --- server/src/plugins/soundboard/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/plugins/soundboard/index.ts b/server/src/plugins/soundboard/index.ts index d53238e..84eace7 100644 --- a/server/src/plugins/soundboard/index.ts +++ b/server/src/plugins/soundboard/index.ts @@ -532,7 +532,7 @@ async function playFilePath(guildId: string, channelId: string, filePath: string if (cachedPath) { const pcmBuf = getPcmFromMemory(cachedPath); if (pcmBuf) { - resource = createAudioResource(Readable.from(pcmBuf), { inlineVolume: useVolume !== 1, inputType: StreamType.Raw }); + resource = createAudioResource(Readable.from(pcmBuf), { inlineVolume: true, inputType: StreamType.Raw }); } else { resource = createAudioResource(fs.createReadStream(cachedPath, { highWaterMark: 256 * 1024 }), { inlineVolume: true, inputType: StreamType.Raw }); }