Pretty!
This commit is contained in:
parent
d3afd5f0df
commit
4714da458e
2 changed files with 19 additions and 7 deletions
|
@ -173,7 +173,6 @@ export type LevelsSource =
|
||||||
| "player-1"
|
| "player-1"
|
||||||
| "player-2";
|
| "player-2";
|
||||||
|
|
||||||
|
|
||||||
// Setting this directly affects the performance of .getFloatTimeDomainData()
|
// Setting this directly affects the performance of .getFloatTimeDomainData()
|
||||||
// Must be a power of 2.
|
// Must be a power of 2.
|
||||||
const ANALYSIS_FFT_SIZE = 2048;
|
const ANALYSIS_FFT_SIZE = 2048;
|
||||||
|
@ -348,9 +347,7 @@ export class AudioEngine extends ((EngineEmitter as unknown) as {
|
||||||
this.micMixGain.gain.value = value;
|
this.micMixGain.gain.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
getLevels(source: LevelsSource, stereo: boolean): [number, number] {
|
getLevels(source: LevelsSource, stereo: boolean): [number, number] {
|
||||||
|
|
||||||
switch (source) {
|
switch (source) {
|
||||||
case "mic-precomp":
|
case "mic-precomp":
|
||||||
this.micPrecompAnalyser.getFloatTimeDomainData(
|
this.micPrecompAnalyser.getFloatTimeDomainData(
|
||||||
|
@ -405,7 +402,7 @@ export class AudioEngine extends ((EngineEmitter as unknown) as {
|
||||||
peakR = 20 * Math.log10(peakR);
|
peakR = 20 * Math.log10(peakR);
|
||||||
return [peakL, peakR];
|
return [peakL, peakR];
|
||||||
}
|
}
|
||||||
return [peakL,0];
|
return [peakL, 0];
|
||||||
}
|
}
|
||||||
|
|
||||||
async playNewsEnd() {
|
async playNewsEnd() {
|
||||||
|
|
|
@ -159,8 +159,18 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-myradio .navbar-nav .open .dropdown-menu > .active > .dropdown-item,
|
.navbar-myradio .navbar-nav .open .dropdown-menu > .active > .dropdown-item,
|
||||||
.navbar-myradio .navbar-nav .open .dropdown-menu > .active > .dropdown-item:hover,
|
.navbar-myradio
|
||||||
.navbar-myradio .navbar-nav .open .dropdown-menu > .active > .dropdown-item:focus {
|
.navbar-nav
|
||||||
|
.open
|
||||||
|
.dropdown-menu
|
||||||
|
> .active
|
||||||
|
> .dropdown-item:hover,
|
||||||
|
.navbar-myradio
|
||||||
|
.navbar-nav
|
||||||
|
.open
|
||||||
|
.dropdown-menu
|
||||||
|
> .active
|
||||||
|
> .dropdown-item:focus {
|
||||||
color: #e1e1e1;
|
color: #e1e1e1;
|
||||||
background-color: #2d333c;
|
background-color: #2d333c;
|
||||||
}
|
}
|
||||||
|
@ -219,7 +229,12 @@
|
||||||
color: #e1e1e1;
|
color: #e1e1e1;
|
||||||
}
|
}
|
||||||
.navbar-myradio .navbar-nav .open .dropdown-menu > .active > .dropdown-item,
|
.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-myradio
|
||||||
.navbar-nav
|
.navbar-nav
|
||||||
.open
|
.open
|
||||||
|
|
Loading…
Reference in a new issue