From ee1387d8ca7ad23054c935586b26c64ee1c89b5c Mon Sep 17 00:00:00 2001 From: zoton2 Date: Tue, 20 Feb 2024 19:53:18 +0100 Subject: [PATCH] Attempt to allow mixer to work correctly on custom "Game Layout" scene --- src/extension/mixer.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/extension/mixer.ts b/src/extension/mixer.ts index b65ed4a4..7ed181a3 100644 --- a/src/extension/mixer.ts +++ b/src/extension/mixer.ts @@ -85,6 +85,7 @@ async function setInitialFaders(): Promise { const readerScenes = [ obs.findScene(config.obs.names.scenes.commercials), obs.findScene(config.obs.names.scenes.gameLayout), + obs.findScene(`${config.obs.names.scenes.gameLayout} (custom)`), obs.findScene(config.obs.names.scenes.intermission), obs.findScene(config.obs.names.scenes.intermissionCrowd), obs.findScene(config.obs.names.scenes.readerIntroduction), @@ -92,6 +93,7 @@ async function setInitialFaders(): Promise { // These scenes will have the game and players audible. const gameScenes = [ obs.findScene(config.obs.names.scenes.gameLayout), + obs.findScene(`${config.obs.names.scenes.gameLayout} (custom)`), ].filter(Boolean) as string[]; if (readerScenes.includes(obs.currentScene || '')) { x32.setFader('/dca/2/fader', 0.75); // LIVE Readers @@ -124,6 +126,7 @@ obs.conn.on('TransitionBegin', async (data) => { const readerScenes = [ obs.findScene(config.obs.names.scenes.commercials), obs.findScene(config.obs.names.scenes.gameLayout), + obs.findScene(`${config.obs.names.scenes.gameLayout} (custom)`), obs.findScene(config.obs.names.scenes.intermission), obs.findScene(config.obs.names.scenes.intermissionCrowd), obs.findScene(config.obs.names.scenes.readerIntroduction), @@ -131,6 +134,7 @@ obs.conn.on('TransitionBegin', async (data) => { // These scenes will have the game and players audible. const gameScenes = [ obs.findScene(config.obs.names.scenes.gameLayout), + obs.findScene(`${config.obs.names.scenes.gameLayout} (custom)`), ].filter(Boolean) as string[]; toggleFadeHelper('/dca/1/fader', gameScenes, data, false); // LIVE Runners toggleFadeHelper('/dca/2/fader', readerScenes, data, false); // LIVE Readers