去掉了音频设置里的滤波特性/RCA 模式,新增 UAC 版本
This commit is contained in:
@@ -480,6 +480,13 @@
|
|||||||
{ "index": 6, "label": "Modus 7" },
|
{ "index": 6, "label": "Modus 7" },
|
||||||
{ "index": 7, "label": "Modus 8" }
|
{ "index": 7, "label": "Modus 8" }
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"uacVer": {
|
||||||
|
"label": "UAC-Version",
|
||||||
|
"options": [
|
||||||
|
{ "index": 0, "label": "UAC 2.0" },
|
||||||
|
{ "index": 1, "label": "UAC 1.0" }
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
|||||||
@@ -480,6 +480,13 @@
|
|||||||
{ "index": 6, "label": "mode 7" },
|
{ "index": 6, "label": "mode 7" },
|
||||||
{ "index": 7, "label": "mode 8" }
|
{ "index": 7, "label": "mode 8" }
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"uacVer": {
|
||||||
|
"label": "UAC Version",
|
||||||
|
"options": [
|
||||||
|
{ "index": 0, "label": "UAC 2.0" },
|
||||||
|
{ "index": 1, "label": "UAC 1.0" }
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
|||||||
@@ -480,6 +480,13 @@
|
|||||||
{ "index": 6, "label": "Modo 7" },
|
{ "index": 6, "label": "Modo 7" },
|
||||||
{ "index": 7, "label": "Modo 8" }
|
{ "index": 7, "label": "Modo 8" }
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"uacVer": {
|
||||||
|
"label": "Versión UAC",
|
||||||
|
"options": [
|
||||||
|
{ "index": 0, "label": "UAC 2.0" },
|
||||||
|
{ "index": 1, "label": "UAC 1.0" }
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
|||||||
@@ -480,6 +480,13 @@
|
|||||||
{ "index": 6, "label": "Mode 7" },
|
{ "index": 6, "label": "Mode 7" },
|
||||||
{ "index": 7, "label": "Mode 8" }
|
{ "index": 7, "label": "Mode 8" }
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"uacVer": {
|
||||||
|
"label": "Version UAC",
|
||||||
|
"options": [
|
||||||
|
{ "index": 0, "label": "UAC 2.0" },
|
||||||
|
{ "index": 1, "label": "UAC 1.0" }
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
|||||||
@@ -474,6 +474,13 @@
|
|||||||
{ "index": 6, "label": "模式7" },
|
{ "index": 6, "label": "模式7" },
|
||||||
{ "index": 7, "label": "模式8" }
|
{ "index": 7, "label": "模式8" }
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"uacVer": {
|
||||||
|
"label": "UAC版本",
|
||||||
|
"options": [
|
||||||
|
{ "index": 0, "label": "UAC 2.0" },
|
||||||
|
{ "index": 1, "label": "UAC 1.0" }
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
|||||||
@@ -474,6 +474,13 @@
|
|||||||
{ "index": 6, "label": "模式7" },
|
{ "index": 6, "label": "模式7" },
|
||||||
{ "index": 7, "label": "模式8" }
|
{ "index": 7, "label": "模式8" }
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"uacVer": {
|
||||||
|
"label": "UAC版本",
|
||||||
|
"options": [
|
||||||
|
{ "index": 0, "label": "UAC 2.0" },
|
||||||
|
{ "index": 1, "label": "UAC 1.0" }
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
|||||||
@@ -62,6 +62,9 @@ function CyanSlider({ value, min, max, step = 1, onChange, onRelease }: {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 功能开关:是否显示「滤波特性」和「ARC模式」入口(代码保留,改为 true 可恢复显示) */
|
||||||
|
const SHOW_FILTER_AND_ARC = false;
|
||||||
|
|
||||||
function SectionHeader({ title }: { title: string }) {
|
function SectionHeader({ title }: { title: string }) {
|
||||||
return (
|
return (
|
||||||
<div className="px-1 pt-5 pb-2">
|
<div className="px-1 pt-5 pb-2">
|
||||||
@@ -123,6 +126,7 @@ type LocaleDac = {
|
|||||||
xlr?: { label?: string; options?: Array<{ index: number; label: string }> };
|
xlr?: { label?: string; options?: Array<{ index: number; label: string }> };
|
||||||
mutePolar?: { label?: string; options?: Array<{ index: number; label: string }> };
|
mutePolar?: { label?: string; options?: Array<{ index: number; label: string }> };
|
||||||
IISMode?: { label?: string; options?: Array<{ index: number; label: string }> };
|
IISMode?: { label?: string; options?: Array<{ index: number; label: string }> };
|
||||||
|
uacVer?: { label?: string; options?: Array<{ index: number; label: string }> };
|
||||||
};
|
};
|
||||||
home?: { audioSet?: string };
|
home?: { audioSet?: string };
|
||||||
};
|
};
|
||||||
@@ -228,6 +232,7 @@ export default function AudioPage() {
|
|||||||
const xlrIdx = ds?.xlr ?? 0;
|
const xlrIdx = ds?.xlr ?? 0;
|
||||||
const mutePolarIdx = (ds as ({ hdmimutepolar?: number } | null))?.hdmimutepolar ?? 0;
|
const mutePolarIdx = (ds as ({ hdmimutepolar?: number } | null))?.hdmimutepolar ?? 0;
|
||||||
const iisModeIdx = (ds as ({ hdmiType?: number } | null))?.hdmiType ?? 0;
|
const iisModeIdx = (ds as ({ hdmiType?: number } | null))?.hdmiType ?? 0;
|
||||||
|
const uacVerIdx = (ds as ({ uac_ver?: number } | null))?.uac_ver ?? 0;
|
||||||
const bootSoundVal = normalizeBootSound(localBootSound);
|
const bootSoundVal = normalizeBootSound(localBootSound);
|
||||||
const firmwareVersion = parseFirmwareVersion(ds?.version);
|
const firmwareVersion = parseFirmwareVersion(ds?.version);
|
||||||
const bootSoundMaxIdx = getBootSoundMaxIndex(firmwareVersion);
|
const bootSoundMaxIdx = getBootSoundMaxIndex(firmwareVersion);
|
||||||
@@ -241,6 +246,7 @@ export default function AudioPage() {
|
|||||||
const XLR_OPTIONS = optionLabels(dacText.xlr?.options, ["正常", "反转"]);
|
const XLR_OPTIONS = optionLabels(dacText.xlr?.options, ["正常", "反转"]);
|
||||||
const MUTE_POLAR_OPTIONS = optionLabels(dacText.mutePolar?.options, ["低电平", "高电平"]);
|
const MUTE_POLAR_OPTIONS = optionLabels(dacText.mutePolar?.options, ["低电平", "高电平"]);
|
||||||
const IIS_MODE_OPTIONS = optionLabels(dacText.IISMode?.options, ["模式1", "模式2", "模式3", "模式4", "模式5", "模式6", "模式7", "模式8"]);
|
const IIS_MODE_OPTIONS = optionLabels(dacText.IISMode?.options, ["模式1", "模式2", "模式3", "模式4", "模式5", "模式6", "模式7", "模式8"]);
|
||||||
|
const UAC_VER_OPTIONS = optionLabels(dacText.uacVer?.options, ["UAC 2.0", "UAC 1.0"]);
|
||||||
|
|
||||||
const pageTitle = usePageTitleWithConnection(localeData.home?.audioSet ?? "Audio");
|
const pageTitle = usePageTitleWithConnection(localeData.home?.audioSet ?? "Audio");
|
||||||
|
|
||||||
@@ -341,11 +347,13 @@ export default function AudioPage() {
|
|||||||
{/* ── 输出特性 ── */}
|
{/* ── 输出特性 ── */}
|
||||||
<SectionHeader title={dacText.sectionOutput ?? "输出特性"} />
|
<SectionHeader title={dacText.sectionOutput ?? "输出特性"} />
|
||||||
<div className="ios-list-group">
|
<div className="ios-list-group">
|
||||||
|
{SHOW_FILTER_AND_ARC && (
|
||||||
<ListRow
|
<ListRow
|
||||||
label={dacText.filters?.label ?? "滤波特性"}
|
label={dacText.filters?.label ?? "滤波特性"}
|
||||||
value={FILTER_OPTIONS[filterIdx] ?? FILTER_OPTIONS[0] ?? "—"}
|
value={FILTER_OPTIONS[filterIdx] ?? FILTER_OPTIONS[0] ?? "—"}
|
||||||
onClick={() => goSelect(dacText.filters?.label ?? "选择滤波特性", FILTER_OPTIONS, filterIdx, "filterCharacteristic")}
|
onClick={() => goSelect(dacText.filters?.label ?? "选择滤波特性", FILTER_OPTIONS, filterIdx, "filterCharacteristic")}
|
||||||
/>
|
/>
|
||||||
|
)}
|
||||||
<ListRow
|
<ListRow
|
||||||
label={dacText.dacGain?.label ?? "耳机增益"}
|
label={dacText.dacGain?.label ?? "耳机增益"}
|
||||||
value={GAIN_OPTIONS[gainIdx] ?? GAIN_OPTIONS[0] ?? "—"}
|
value={GAIN_OPTIONS[gainIdx] ?? GAIN_OPTIONS[0] ?? "—"}
|
||||||
@@ -369,6 +377,7 @@ export default function AudioPage() {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
{SHOW_FILTER_AND_ARC && (
|
||||||
<ListRow
|
<ListRow
|
||||||
label={dacText.dacArc?.label ?? "ARC模式"}
|
label={dacText.dacArc?.label ?? "ARC模式"}
|
||||||
value={DAC_ARC_OPTIONS[dacArcIdx] ?? DAC_ARC_OPTIONS[0] ?? "—"}
|
value={DAC_ARC_OPTIONS[dacArcIdx] ?? DAC_ARC_OPTIONS[0] ?? "—"}
|
||||||
@@ -381,6 +390,7 @@ export default function AudioPage() {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
)}
|
||||||
<ListRow
|
<ListRow
|
||||||
label={dacText.volumeStep ?? "音量幅度"}
|
label={dacText.volumeStep ?? "音量幅度"}
|
||||||
value={STEP_OPTIONS[stepIdx] ?? STEP_OPTIONS[0]}
|
value={STEP_OPTIONS[stepIdx] ?? STEP_OPTIONS[0]}
|
||||||
@@ -423,6 +433,11 @@ export default function AudioPage() {
|
|||||||
value={XLR_OPTIONS[xlrIdx] ?? XLR_OPTIONS[0] ?? "—"}
|
value={XLR_OPTIONS[xlrIdx] ?? XLR_OPTIONS[0] ?? "—"}
|
||||||
onClick={() => goSelect(dacText.xlr?.label ?? "选择 XLR 极性", XLR_OPTIONS, xlrIdx, "xlr")}
|
onClick={() => goSelect(dacText.xlr?.label ?? "选择 XLR 极性", XLR_OPTIONS, xlrIdx, "xlr")}
|
||||||
/>
|
/>
|
||||||
|
<ListRow
|
||||||
|
label={dacText.uacVer?.label ?? "UAC版本"}
|
||||||
|
value={UAC_VER_OPTIONS[uacVerIdx] ?? UAC_VER_OPTIONS[0] ?? "—"}
|
||||||
|
onClick={() => goSelect(dacText.uacVer?.label ?? "选择 UAC 版本", UAC_VER_OPTIONS, uacVerIdx, "uacVer")}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -117,6 +117,8 @@ const KEY_TO_SETTING: Record<string, string> = {
|
|||||||
|
|
||||||
IISMode: "hdmiType",
|
IISMode: "hdmiType",
|
||||||
|
|
||||||
|
uacVer: "uac_ver",
|
||||||
|
|
||||||
xlr: "xlr",
|
xlr: "xlr",
|
||||||
|
|
||||||
dacGain: "dacGain",
|
dacGain: "dacGain",
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ interface VUStyle {
|
|||||||
preview: string;
|
preview: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const VU_STYLES: VUStyle[] = Array.from({ length: 16 }, (_, i) => ({
|
const VU_STYLES: VUStyle[] = Array.from({ length: 17 }, (_, i) => ({
|
||||||
index: i,
|
index: i,
|
||||||
name: `VU ${i + 1}`,
|
name: `VU ${i + 1}`,
|
||||||
preview: `${import.meta.env.BASE_URL}images/vu/vu${i + 1}.png`,
|
preview: `${import.meta.env.BASE_URL}images/vu/vu${i + 1}.png`,
|
||||||
|
|||||||
Reference in New Issue
Block a user