Repository navigation
feat(sound-power): 支持测量面积并修复图谱与采集回放 - #26
Merged
Merged
Conversation
yangdekun2026
approved these changes
Nov 16, 2026
cuimmm
marked this pull request as ready for review
November 16, 2026 05:46
cuimmm
approved these changes
Nov 16, 2026
KyleHuangFromHZ
added a commit
that referenced
this pull request
Nov 16, 2026
## Summary GB/T 1094.10 简易法和 GB/T 32524.2 工程法各自提供真实测量面积。宿主在 JNI 调用边界把该面积换算成等面积半球的输入,使现有 Windows 算法接口可继续使用。 ```text 标准的真实面积 S → r = √(S / 2π) → 原简易法 / 工程法 JNI 标准的测量面、点位和报告依据 → 原样保留 ``` ## Evidence - **Before:** 显式面积通过未发布的 `surfaceType=-1` 传入,依赖定制的算法 DLL。 **After:** 单测验证同一面积通过发布接口进入简易法及工程法的实时、结束计算路径,旧几何输入保持原有映射。提供显式面积时不再转发箱形或圆柱几何参数;简易法和工程法的参数记录都拒绝无效面积和面积与普通面型的混用。同步最新主线后 53 项相关单测通过。 - Windows-huang、51 号设备、现有客户端与现有授权:两项均做 9 点、背景和正式各 15 秒,新结果文件均可读,Data Selector 和历史图谱正常。 - 1094.10 简易法,Measure #19:LwZ 69.451 dBSWL,K2Z 0.478 dB。 - 32524.2 工程法,Measure #20:LwZ 54.497 dBSWL,K2Z 0.974 dB。 - 另以现有运行库做 80 个简易法、5 个工程法 JNI 数值用例,覆盖 **0.75–125 m²**(包括 14.5497、31.46、48.8496 m²),通过等面积输入核对面积、修正值和声功率。复测前后证书和 DLL 校验一致。设备验收使用现有客户端;没有把候选 JAR 或主线 DLL 换到实测客户端。 上一轮 Windows 全量 CI 的 24 个前端失败文件和 5 个后端失败类,与[同期 main 运行](https://github.com/crysound/OpenTest/actions/runs/43826819291)以及[后续 main 运行](https://github.com/crysound/OpenTest/actions/runs/43837080640)一致。本 PR 只修改声功率代码。 配套:原宿主改动 #26 已合入;插件见 [OpenTest-Plugins-Internal #5](https://github.com/crysound/OpenTest-Plugins-Internal/pull/5)。 ## Merge Danger **Door:** two-way,可正常回退 Java 提交;不改 DLL、授权文件、数据库或插件 API 形状。 **Blast Radius:** 声功率中显式传入测量面积的调用。 --------- Co-authored-by: 黄凯 <324400663+KyleHuangFromHZ@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
声功率切换标准后,保留图卡可能没有结果绑定;旧配置还可能使无数据的 LwZ 曲线显示坐标轴错误。宿主现在按插件声明差分同步图卡,保留图卡 ID 和用户设置,并将无绑定曲线明确读作空图。背景重采、分批采集和历史读取保留各自的数据归属。
Evidence
Invalid chart axis configuration。After: Windows 设备 51 复验原配置,已有记录 feat(native): update order analysis JNI and production runtime #11 与新记录 ci(review): AI 审查完成后在飞书 @ 提交者 #18 均可回放,ci(review): AI 审查完成后在飞书 @ 提交者 #18 的 LwZ 为 69.556 dBSWL。
main:192 项相关 Java 单测、15 项 PDF 导出单测和文档检查通过。宿主集成测试另有 Monitor 成员规划失败。在无本 PR 改动的main(6a05f99)上,MonitorInputSlotLifecycleEntryIT#aBoundPhysicalMemberWithMissingUnitsRemainsInvalid可复现同一bindingOrder空指针。main的 Windows 算法 DLL。合并前需提供保留现有工具链与导出符号的显式面积运行库,并重做 Java/JNI 数值验证;现有 Windows 实测用的是之前独立部署的对应运行库。Merge Danger
Door: two-way — 可沿正常流程回退提交;未改数据库结构。
Blast Radius: 宿主测量与历史图谱。草稿等待兼容的算法运行库和分支要求的审查。