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