style: auto-fix linting issues
This commit is contained in:
parent
782e98061b
commit
0652aa4866
5 changed files with 35 additions and 19 deletions
32
index.html
32
index.html
|
|
@ -4197,7 +4197,9 @@
|
|||
<!-- AutoEQ Controls -->
|
||||
<div class="autoeq-controls-section">
|
||||
<div class="autoeq-control-group">
|
||||
<label class="autoeq-control-label" for="autoeq-headphone-select">HEADPHONE MODEL</label>
|
||||
<label class="autoeq-control-label" for="autoeq-headphone-select"
|
||||
>HEADPHONE MODEL</label
|
||||
>
|
||||
<div class="autoeq-select-wrapper">
|
||||
<select id="autoeq-headphone-select" aria-label="Headphone model">
|
||||
<option value="">Select a headphone...</option>
|
||||
|
|
@ -4258,7 +4260,9 @@
|
|||
|
||||
<div class="autoeq-controls-row">
|
||||
<div class="autoeq-control-mini">
|
||||
<label class="autoeq-control-label" for="autoeq-band-count">FILTER BANDS</label>
|
||||
<label class="autoeq-control-label" for="autoeq-band-count"
|
||||
>FILTER BANDS</label
|
||||
>
|
||||
<select id="autoeq-band-count" aria-label="Filter bands">
|
||||
<option value="5">5</option>
|
||||
<option value="10" selected>10</option>
|
||||
|
|
@ -4279,7 +4283,9 @@
|
|||
</select>
|
||||
</div>
|
||||
<div class="autoeq-control-mini">
|
||||
<label class="autoeq-control-label" for="autoeq-sample-rate">SAMPLE RATE</label>
|
||||
<label class="autoeq-control-label" for="autoeq-sample-rate"
|
||||
>SAMPLE RATE</label
|
||||
>
|
||||
<select id="autoeq-sample-rate" aria-label="Sample rate">
|
||||
<option value="44100">44.1k</option>
|
||||
<option value="48000" selected>48k</option>
|
||||
|
|
@ -4298,7 +4304,12 @@
|
|||
<use svg="!lucide/download.svg" size="20" />
|
||||
</button>
|
||||
</div>
|
||||
<span id="autoeq-status" class="autoeq-status" role="status" aria-live="polite"></span>
|
||||
<span
|
||||
id="autoeq-status"
|
||||
class="autoeq-status"
|
||||
role="status"
|
||||
aria-live="polite"
|
||||
></span>
|
||||
</div>
|
||||
|
||||
<!-- Saved Profiles -->
|
||||
|
|
@ -4526,7 +4537,12 @@
|
|||
>
|
||||
Measure All
|
||||
</button>
|
||||
<span id="speaker-eq-status" class="autoeq-status" role="status" aria-live="polite"></span>
|
||||
<span
|
||||
id="speaker-eq-status"
|
||||
class="autoeq-status"
|
||||
role="status"
|
||||
aria-live="polite"
|
||||
></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -4606,7 +4622,11 @@
|
|||
</div>
|
||||
|
||||
<!-- Saved Profiles for Parametric EQ -->
|
||||
<div class="autoeq-parametric-profiles" id="autoeq-parametric-profiles" style="display: none">
|
||||
<div
|
||||
class="autoeq-parametric-profiles"
|
||||
id="autoeq-parametric-profiles"
|
||||
style="display: none"
|
||||
>
|
||||
<div class="autoeq-saved-header">
|
||||
<div class="autoeq-saved-header-left">
|
||||
<span class="autoeq-saved-title">SAVED PROFILES</span>
|
||||
|
|
|
|||
|
|
@ -1885,13 +1885,7 @@ export class LosslessAPI {
|
|||
}
|
||||
|
||||
if (!isVideo) {
|
||||
blob = await applyAudioPostProcessing(
|
||||
blob,
|
||||
quality,
|
||||
onProgress,
|
||||
options.signal,
|
||||
postProcessingQuality
|
||||
);
|
||||
blob = await applyAudioPostProcessing(blob, quality, onProgress, options.signal, postProcessingQuality);
|
||||
}
|
||||
|
||||
// Add metadata if track information is provided
|
||||
|
|
|
|||
|
|
@ -178,8 +178,8 @@ export class Player {
|
|||
this.audio.currentTime = this.video.currentTime;
|
||||
}
|
||||
} catch {
|
||||
// Video-to-audio time sync may fail if readyState is stale
|
||||
}
|
||||
// Video-to-audio time sync may fail if readyState is stale
|
||||
}
|
||||
}
|
||||
|
||||
const syncedEvent = new Event(eventName, { bubbles: e.bubbles, cancelable: e.cancelable });
|
||||
|
|
|
|||
|
|
@ -1570,9 +1570,7 @@ export async function initializeSettings(scrobbler, player, api, ui) {
|
|||
|
||||
// Draw Original measurement (normalized + shifted)
|
||||
if (graphMeasurement) {
|
||||
const normOff = targetData
|
||||
? getNormalizationOffset(graphMeasurement, targetData)
|
||||
: 0;
|
||||
const normOff = targetData ? getNormalizationOffset(graphMeasurement, targetData) : 0;
|
||||
const normalized = graphMeasurement.map((p) => ({ freq: p.freq, gain: p.gain + normOff + graphShift }));
|
||||
drawCurve(normalized, originalColor, 1.5);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1299,7 +1299,11 @@ export const equalizerSettings = {
|
|||
|
||||
setCustomFrequencies(frequencies) {
|
||||
try {
|
||||
if (Array.isArray(frequencies) && frequencies.length >= this.MIN_BANDS && frequencies.length <= this.MAX_BANDS) {
|
||||
if (
|
||||
Array.isArray(frequencies) &&
|
||||
frequencies.length >= this.MIN_BANDS &&
|
||||
frequencies.length <= this.MAX_BANDS
|
||||
) {
|
||||
localStorage.setItem(this.CUSTOM_FREQUENCIES_KEY, JSON.stringify(frequencies));
|
||||
}
|
||||
} catch (e) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue