Merge pull request #250 from UniversityRadioYork/mstratford/bapsicle-news
Only import news files when not using BAPSicle.
This commit is contained in:
commit
bddd49f4f7
1 changed files with 7 additions and 2 deletions
|
@ -4,11 +4,16 @@ import StrictEmitter from "strict-event-emitter-types";
|
||||||
import WaveSurfer from "wavesurfer.js";
|
import WaveSurfer from "wavesurfer.js";
|
||||||
import CursorPlugin from "wavesurfer.js/dist/plugin/wavesurfer.cursor.min.js";
|
import CursorPlugin from "wavesurfer.js/dist/plugin/wavesurfer.cursor.min.js";
|
||||||
import RegionsPlugin from "wavesurfer.js/dist/plugin/wavesurfer.regions.min.js";
|
import RegionsPlugin from "wavesurfer.js/dist/plugin/wavesurfer.regions.min.js";
|
||||||
import NewsEndCountdown from "../assets/audio/NewsEndCountdown.wav";
|
|
||||||
import NewsIntro from "../assets/audio/NewsIntro.wav";
|
|
||||||
|
|
||||||
import StereoAnalyserNode from "stereo-analyser-node";
|
import StereoAnalyserNode from "stereo-analyser-node";
|
||||||
|
|
||||||
|
let NewsEndCountdown: string;
|
||||||
|
let NewsIntro: string;
|
||||||
|
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;
|
||||||
|
|
Loading…
Reference in a new issue