From 4714da458e0f38ef6455ff1a041303a0f98b1865 Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Fri, 25 Sep 2020 02:08:54 +0100 Subject: [PATCH] Pretty! --- src/mixer/audio.ts | 5 +---- src/navbar/navbar.scss | 21 ++++++++++++++++++--- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/src/mixer/audio.ts b/src/mixer/audio.ts index f4e1322..cd14c57 100644 --- a/src/mixer/audio.ts +++ b/src/mixer/audio.ts @@ -173,7 +173,6 @@ export type LevelsSource = | "player-1" | "player-2"; - // Setting this directly affects the performance of .getFloatTimeDomainData() // Must be a power of 2. const ANALYSIS_FFT_SIZE = 2048; @@ -348,9 +347,7 @@ export class AudioEngine extends ((EngineEmitter as unknown) as { this.micMixGain.gain.value = value; } - getLevels(source: LevelsSource, stereo: boolean): [number, number] { - switch (source) { case "mic-precomp": this.micPrecompAnalyser.getFloatTimeDomainData( @@ -405,7 +402,7 @@ export class AudioEngine extends ((EngineEmitter as unknown) as { peakR = 20 * Math.log10(peakR); return [peakL, peakR]; } - return [peakL,0]; + return [peakL, 0]; } async playNewsEnd() { diff --git a/src/navbar/navbar.scss b/src/navbar/navbar.scss index f7bbfed..343c50f 100644 --- a/src/navbar/navbar.scss +++ b/src/navbar/navbar.scss @@ -159,8 +159,18 @@ } .navbar-myradio .navbar-nav .open .dropdown-menu > .active > .dropdown-item, -.navbar-myradio .navbar-nav .open .dropdown-menu > .active > .dropdown-item:hover, -.navbar-myradio .navbar-nav .open .dropdown-menu > .active > .dropdown-item:focus { +.navbar-myradio + .navbar-nav + .open + .dropdown-menu + > .active + > .dropdown-item:hover, +.navbar-myradio + .navbar-nav + .open + .dropdown-menu + > .active + > .dropdown-item:focus { color: #e1e1e1; background-color: #2d333c; } @@ -219,7 +229,12 @@ color: #e1e1e1; } .navbar-myradio .navbar-nav .open .dropdown-menu > .active > .dropdown-item, - .navbar-myradio .navbar-nav .open .dropdown-menu > .active > .dropdown-item:hover, + .navbar-myradio + .navbar-nav + .open + .dropdown-menu + > .active + > .dropdown-item:hover, .navbar-myradio .navbar-nav .open