Skip to content

Commit

Permalink
Attempt to allow mixer to work correctly on custom "Game Layout" scene
Browse files Browse the repository at this point in the history
  • Loading branch information
zoton2 committed Feb 20, 2024
1 parent e2fcc01 commit ee1387d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/extension/mixer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,15 @@ async function setInitialFaders(): Promise<void> {
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),
].filter(Boolean) as string[];
// 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
Expand Down Expand Up @@ -124,13 +126,15 @@ 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),
].filter(Boolean) as string[];
// 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
Expand Down

0 comments on commit ee1387d

Please sign in to comment.