Commit Graph
10 Commits
Author SHA1 Message Date
TheM14 2a60931875 Update the kernel headers to 1.2.0
Both copies of joc_version.h follow the main repository: third_party/joc/
include for the cplugin and fork/files/audio/decode for the ad_joc patch
now carry JOC_VERSION_STRING 1.2.0. joc_core.h and joc_stream.h are
unchanged, so the public ABI stays at 5 and neither integration needs a
code change.

Rebuilt joc_core.dll from the 1.2.0 kernel with tools/build.ps1;
tools/verify_kernel.ps1 reports all three headers byte-identical, and
joc_cli.exe --version reports 1.2.0 (joc_core ABI 5). The warp and trim
behaviour arrives through the unchanged joc_stream surface.
2026-11-03 01:35:28 +08:00
TheM14 f555235f2b Remove the cache lines the decoder was left with
The previous change dropped the SOFA input but left two lines of the old disk
cache block inside create(): the stream config was still assigned
hrtf_cache_policy, which the kernel no longer has, and the brace that closed the
block ended the binaural branch early. Both compilers stopped there, so the
Windows and the Android build agreed on the error.

The frame-length message in feed() is a size_t and uses %zu now, which the same
build reported as a warning.
2026-11-01 20:04:34 +08:00
TheM14 a2471ce502 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.
2026-11-01 19:59:08 +08:00
TheM14 19b4a49407 Drop the HRTF source and cache options
The kernel renders the Rosella .personalized_headphone model or an already
compiled .jochrtf field, and only the first is a user-facing input: the SOFA
reader and its compile cache left the library. joc-hrtf-source, joc-hrtf-cache
and joc-hrtf-cache-dir go with them, and the default file is now
binaural.personalized_headphone only.

The plugin sets personalized_headphone_path directly, and the disk-cache retry
path disappears with the cache itself. The headers in third_party/joc/include
and fork/files/audio/decode follow the new kernel, so the config structs no
longer carry hrtf_sofa_path, hrtf_cache_policy, hrtf_cache_dir or hrtf_radius_m,
and the rosella filterbank no longer needs its SOFA exception.

The example config and the option tables in both READMEs drop the removed keys.
Builds against the kernel with tools/build.ps1 -JocCoreSource.
2026-11-01 19:38:41 +08:00
TheM14 ecf14d8c32 Sync the Rosella filterbank choice into the plugin and the fork
The kernel can now render the Rosella path through either bank; expose
that choice in both front ends with the same values and the same
default.

- plugin: joc-rosella-filterbank = 1|2 (public|captured); unset means
  the kernel default (the public bank), and it applies only to
  joc-hrtf-source=rosella, logging a warning otherwise
- fork: --ad-joc-rosella-filterbank, the same values and default; it
  sits in the ad_joc option group, so it is read only when ad_joc
  decodes a Rosella model
- log the bank actually selected (public|captured) on both paths
- add a bank-2 case to tools/verify_parity.ps1
- document the key in both READMEs and the example config

Checked: the plugin builds, the option parser covers the numeric and
named spellings plus invalid values, and for both banks the plugin's
PCM is bit-identical to joc_cli with --rosella-filterbank 1|2.
2026-10-31 02:29:23 +08:00
TheM14 a9cbffa1cf Synchronize the kernel headers with the upstream repository
The kernel replaced the reserved words with rosella_filterbank and
bumped the task config version to 4; joc_task_config and
joc_stream_config keep their sizes, so the ABI stays compatible.

- Update third_party/joc/include/joc_core.h and joc_stream.h
- Update the copies ad_joc compiles against in
  fork/files/audio/decode/

tools/verify_kernel.ps1 reports the public headers byte-identical to
the upstream checkout.
2026-10-31 02:29:01 +08:00
TheM14 c22fa692f8 Synchronize the kernel version headers with the upstream repository 2026-10-30 04:21:17 +08:00
TheM14 78f2c4b4bd Serve the renderer's channel order without touching the player's layout 2026-10-29 01:09:55 +08:00
TheM14 7d013fef46 Support the two 4.0 layouts in the plugin and the fork 2026-10-27 23:52:43 +08:00
TheM14 126e2cd233 Init mpv-joc 2026-10-18 21:31:38 +08:00