feat(api): 新增 UAC 版本支持及相关界面改进

- 在音频参数中加入 uac_ver 字段,支持区分 UAC 2.0 和 UAC 1.0
- 在多语言资源中添加 UAC 版本选项及对应标签(中英文、德语、西班牙语、法语、繁体中文等)
- 在 AudioPage 页面新增 UAC 版本选择组件,支持用户选择不同版本
- 在 SelectPage 中加入 uac_ver 的映射,保证数据正确传递
- 为 UAC 版本选项新增“Custom”自定义项,丰富配置可能性
This commit is contained in:
eafonyang
2026-09-08 14:19:26 +08:00
parent f6f8bee11a
commit 33a5b8a9b0
9 changed files with 102 additions and 6 deletions
+3
View File
@@ -101,6 +101,8 @@ export interface DeviceState {
dreMode: number;
dacVolumeDirect: number;
analogGain: number;
/** USB Audio Class version: 0 = UAC 2.0, 1 = UAC 1.0. */
uac_ver: number;
effect_enable: number;
effect_value: number;
width_enable: number;
@@ -488,6 +490,7 @@ export const MOCK_DEVICE_STATE: DeviceState = {
dreMode: 0,
dacVolumeDirect: 0,
analogGain: 0,
uac_ver: 0,
effect_enable: 0,
effect_value: 50,
width_enable: 0,