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-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() {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue