Only import news files when not using BAPSicle.

This commit is contained in:
Matthew Stratford 2021-09-11 18:46:22 +01:00 committed by GitHub
parent 89aa41bd45
commit 0a0ed8702a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,13 @@ import NewsIntro from "../assets/audio/NewsIntro.wav";
import StereoAnalyserNode from "stereo-analyser-node"; 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 DEFAULT_TRIM_DB = -6; // The default trim applied to channel players.
export const OFF_LEVEL_DB = -40; export const OFF_LEVEL_DB = -40;