From 0a0ed8702a470ac52318c928eb0782358aa1fdbf Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Sat, 11 Sep 2021 18:46:22 +0100 Subject: [PATCH] Only import news files when not using BAPSicle. --- src/mixer/audio.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mixer/audio.ts b/src/mixer/audio.ts index cf85ee3..2816b4e 100644 --- a/src/mixer/audio.ts +++ b/src/mixer/audio.ts @@ -9,6 +9,13 @@ import NewsIntro from "../assets/audio/NewsIntro.wav"; import StereoAnalyserNode from "stereo-analyser-node"; +let NewsEndCountdown: any; +let NewsIntro: any; +if (!process.env.REACT_APP_BAPSICLE_INTERFACE) { + NewsEndCountdown = require("../assets/audio/NewsEndCountdown.wav"); + NewsIntro = require("../assets/audio/NewsIntro.wav"); +} + export const DEFAULT_TRIM_DB = -6; // The default trim applied to channel players. export const OFF_LEVEL_DB = -40;