Compile the fork decoder against the kernel that takes one HRTF input

ad_joc.c still asked the stream config for hrtf_sofa_path, hrtf_cache_dir and
hrtf_cache_policy, which the kernel no longer has; the same file is compiled by
the Windows and the Android build, so both stopped there.

The decoder now recognises only the Rosella model -- a JSON file containing a
personalized_hrtf object -- and passes its path to personalized_headphone_path.
The SOFA magic sniffing, the .jochrtf extension branch, the default cache
directory and the disk-cache retry path are gone, the default lookup is
HRTF/binaural.personalized_headphone, and the format warning for the frame length
uses %zu. The README, the fork docs and the example configs name the model file
instead of binaural.sofa.
This commit is contained in:
TheM14 committed 2026-11-01 19:59:08 +08:00
1 parent 19b4a49407
commit a2471ce502
8 files changed
+26 -83

No files matched your search

+2 -2
View File
@@ -69,7 +69,7 @@ mpv-joc/
```text
<mpv>\\scripts\\joc_mpv.dll 插件本体
<mpv>\\joc_core.dll 渲染内核(与 JustOneCacophonyCXX 同一个二进制)
<mpv>\\HRTF\\binaural.sofa 双耳渲染默认数据
<mpv>\\HRTF\\binaural.personalized_headphone 双耳渲染默认数据
<mpv>\\HRTF\\binaural.personalized_headphone (Rosella 模型,二选一)
```
@@ -246,7 +246,7 @@ cmake --build build --config Release
* **没有任何 JOC 提示、听起来是普通 E-AC-3** —— 文件没有 JOC 元数据,或者容器的音频轨不是
E-AC-3;插件不接管时 mpv 会照常播放原始轨。
* **双耳报错"找不到 HRTF 文件"** —— 把 `binaural.sofa` 放到 `<mpv>\\HRTF\\`,或用
* **双耳报错"找不到 HRTF 文件"** —— 把 `binaural.personalized_headphone` 放到 `<mpv>\\HRTF\\`,或用
`joc-hrtf` 指定路径。
* **想确认用的是哪条轨道** —— `joc-verbose=yes` 后看日志里的 `probe:` 与 `start:` 行。