Repository navigation
BUILDINFO release metadata, Windows test harness command-line contract, error recovery on audio and plugin paths, RISC-V and PPC64 plugin relocations, and comprehensive verification gates.
Added
- The release archive carries a generated
BUILDINFO.txtrecording the Zig
version, target and optimize mode the shipped DLL was built with, read from
build.zig.zon.deps/SHA256SUMSandSBOM.cdx.jsonalready said which
third-party code the DLL carries and what the vendored headers hash to, but
nothing in the archive said what compiled it, so a rebuild had no toolchain to
reach for. Every field comes from the tree or fromSOURCE_DATE_EPOCH, never
from the packaging host, so the archive stays byte-identical across hosts.
Changed
- The Quick API's three entry points that allocate a sample share one
newQuickSamplehelper, andAIL_quick_load's VFS-or-disk read is now
loadQuickSample. Same handles, same last-error text, same log lines. - The four Windows harnesses in
tests/now answer their command line the same
way:-hand--helpprint a usage on stdout and exit 0, a mistyped flag or
a surplus positional print it on stderr and exit 2, and a missing required
argument names itself on stderr.rib_testtook no arguments and ignored
any it was given, andfull_suiteaccepted a fourth silently. - A diagnostic that stops a harness run now goes to stderr rather than stdout.
The checks themselves still report on stdout, so a piped run reads as a
report with no failure text mixed into it.
Fixed
- A loop restart that miniaudio refuses no longer reports success. The
end-of-sound bridge dropped the result ofma_sound_seek_to_pcm_frameand
ma_sound_startand returned "loop again", so a sample whose loop start lies
past the end of the decoded image (a blocksetLoopBlockaccepts, since it
only checks that the block spans a frame) stayedSMP_PLAYINGforever, never
fired its end callback, and, on an infinite loop count, spun the audio thread
for the life of the process. A failed seek or start is now named in the log
and reported as the end of the sound. - A truncated or foreign SMF is no longer measured as a complete image.
smfImageSizeanswereddata.lenwhen its track walk ran out of data or met
a chunk that was notMTrk, sofindXmihanded the trailing DLS bank back as
part of the music image andAIL_merge_DLS_with_XMIwrote the two out as one
file. Those paths now report 0, matching what the sibling pointer-based walker
already answered and what the module's contract says. AIL_set_3D_sample_infoboundsdata_lenagainst the 256 MiB image cap before
slicing, as every other untrusted image in the library is bounded.channels
andbitswere already clamped, so a game with a badAILSOUNDINFOasked for
a 4 GiB slice over a pointer of unknown extent.LoadLibraryWfailures are no longer all reported asFileNotFound. A path
that failed to convert to UTF-16, a plugin whose imports are missing, and a
plugin whoseDllMainrefused now reach the caller as distinct errors, and
the Win32 code is carried out to the load log beside the plugin name.- A soundbank's name index that fails to build says so. The bank still loads and
still answers every lookup, on the linear-scan path, but nothing recorded that
the index was abandoned. AIL_allocate_busnames which of its three failures (allocation, miniaudio
group init, list append) produced the null, and carries thema_result
description for the init failure.AIL_list_DLSrecords why it rejected an
image instead of leavingAIL_last_errorholding the previous failed call's
message.AIL_redbook_openandAIL_redbook_open_drivelog the error their
catchwas discarding.- Capture chunks dropped by
Input.captureCallback(contended lock, or a ring
with no room) are counted and readable throughInput.droppedChunkCount.
Losing audio silently left a busy device indistinguishable from a quiet one. - A case-insensitive path that resolves but still fails to open now logs both
the first and the retry's error, instead of reporting only the retry's and
losing a permission failure to a "File not found".createFileand
createFileAbsoluteget the retry the opens already had, so a name MSS
resolves case-insensitively can be written as well as read. - The three blocking external calls with no timeout (
LoadLibraryW,
ma_device_init,FindFirstFileW) are recorded indocs/THREAT_MODEL.md
with the reason a bound is not inlined and the value one would take. MilesSetSoundLabelLimitsand aset_limitsstep name every limit entry they
could not parse or store, and record the count throughAIL_last_error. The
call still returns 1: the caps that parsed are applied, and a caller told
"failed" for a partly applied string would not know which half is live.scripts/check_all_versions.shsorted its unswept-version report with
sort -V, a GNU extension BSDsortrejects, so the parity sweep died before
printing a row on a macOS or BSD host. The order is now built fromawk,
sortandcut, and the same sequence comes out.- The ELF plugin-image fixup applied no relocations on a 32-bit Linux target,
and on a riscv64 or ppc64 one, becauserelative_reloc_typenamed only
x86_64 and aarch64. The writable-segment repair still ran, so a plugin loaded
on those targets kept link-time addresses in its data and crashed on the first
dereference. riscv64 and ppc64 are now rebased as well; a 32-bit target still
gets the segment repair without them, because std.elf names noR_386
RELATIVE value to apply. CONTRIBUTING.mdclaimed the library builds on any host Zig supports. It
does not on aarch64, on any operating system, and the README already said so.
The claim now names the exclusion, and it states that the twoscripts/*.sh
gates need bash rather than theshtheir shebangs are read as.- The temporary ASI provider image is created with
Permissions.fromMode(0o600)
rather than a bare0o600.std.Io.File.Permissionsis a non-exhaustive enum,
not a mode integer, so the tree did not compile at all: everyzig buildand
make teston a non-Windows target failed withexpected type 'Io.File.Permissions__enum_2901', found 'comptime_int'. The owner-only mode
itself is unchanged. - The parity setup steps in
CONTRIBUTING.mdandscripts/requirements.txt
now create the virtual environmentuv pip installrequires, instead of
naming an install command that stops withNo virtual environment found.
.venv/is gitignored, andmake check-parity-toolsnames the same three
steps. - 90 of the 197
file:line anchorreferences indocs/THREAT_MODEL.mdwere
stale, somake lintand CI failed on a clean checkout. All 197 resolve again.
Added
scripts/package_release.shwrites<output.zip>.sha256beside the archive,
and the release attaches it. TheSHA256SUMSa release already published
names the files inside the zip, so a consumer who downloaded the archive
and had not unpacked it had no record of the archive's own bytes to check
them against.scripts/check_workflow_shell.py, inmake lintand therefore in CI: every
run:block in.githubis extracted and shellchecked as bash. The shell in
a workflow installs the pinned tools, cross-checksbuild.zig.zonagainst the
tag, and reads the shipped PE header; yamllint read those blocks as YAML, so
a quoting mistake in one passed lint and failed on the runner. A finding names
the workflow and the step it came from.scripts/check_config_docs.py, inmake lintand therefore in CI: the log
cap, the log path limit, theTMPDIRlimit, the default log file name, and
the spellingsOPENMILES_DEBUGaccepts are constants insrc/, and every
one of them was also a number written out in the README and the threat model.
Widening a limit in a source left both documents quoting the old one, so an
operator setting aOPENMILES_LOG_PATHthe library had stopped accepting read
a document that said otherwise, with every gate green. The script reads the
constants back and asserts the documents name them.scripts/check_versions.pyalso reads the accepted-Dmss-versionset from
the header's side. A value added tosrc/mss.hand tocheck_header.py
without a matching entry inbuild.zigcompiled for every consumer and for
every version probe the header gate runs, because each of those selects a
valuebuild.zigdoes know, and the two lists were only compared with each
other. The gate now rejects a header value no build encodes, and compares the
two defaults it never read:build.zig'sorelse "9"andmss.h's
OPENMILES_MSS_VERSION 90, which is what a consumer that defines nothing
gets. It also compares the-Dmss-version=<...>list and the default beside
it in the README, which is where a consumer picks a version from ahead of
zig build --help, and which nothing had read until now.scripts/check_toolchain_pins.pychecks the Zig version in the README's build
requirements against.minimum_zig_version. It was the one pin written in
prose, and a bump that missed it left the front page asking for a compiler
make buildrefuses, with every gate in the tree green.
Changed
scripts/check_vendored.pyfails aREADME.mddependency table that
disagrees withdeps/README.mdon a library's version, upstream, or license,
and fails a vendored library the table does not list. The table is the first
thing a reader of the repository, and of the release archive, sees, and it was
the one copy of the version a scanner matches an advisory against that no gate
checked: a header swap updateddeps/README.md,deps/SHA256SUMSand
SBOM.cdx.json, and left the front page naming the superseded version.scripts/check_vendored.pyfails a vendored entry whose Source is not an
httpsURL on an approved host. Version, upstream commit and digest were all
verified, so a header arriving from a lookalike host carrying the right bytes
and a plausible commit id passed every check; the commit names a revision, not
a repository. Both upstreams resolve togithub.com, named inSOURCE_HOSTS.ci.ymlreads theUV_VERSION,RUFF_VERSIONandYAMLLINT_VERSIONpins out
of theMakefileinstead of repeating them, the wayrelease.ymlalready
did, andmake check-pinsnow fails a workflow that types one of its own.- XMIDI conversion orders a same-tick control or program change before a
same-tick note-on. Sorting by raw status byte put the note-on first, and an
XMIDI sequence opens at delta 0 with its volume, pan and reset-controllers
writes ahead of the first note, so every sequence's first note rendered at the
soundfont's default volume and pan. make check-parity-toolsasksscripts/check_exports.py --check-depswhether
pefileimported, instead of apython -c 'import pefile'one-liner in the
makefile. The probe belongs to the script that owns the dependency, and a
parity run launched withoutpefilenow names the missing package instead of
ending on anImportErrortraceback.
Fixed
src/api_coverage_test.zigcompiled again: the file/input coverage test built
aconstpayload and@ptrCastit toAIL_file_write'svoid FAR *, which
discards the const qualifier, sozig build testfailed to build the test
binary at all.- The Windows temporary directory is now reported for every reason it is
refused. A%TEMP%longer thanMAX_PATH, one that will not convert to a
path this build can use, and an environment with no temporary directory were
two of them the same "TMP, TEMP and the system profile directory are all
unavailable", and the first two were silent: the image went to the game
directory with nothing on stderr to say why. Each reports its own cause, and
the too-long case names the variables to shorten. - The configuration a run starts from no longer inherits the previous run's
OPENMILES_DEBUGecho.debug_from_envwas set when an export was read and
never cleared, so a process that loaded the library twice, with the export
gone the second time, printed a configuration line about a build default that
nothing had asked about.init()anddeinit()both reset it beside the
build defaults they own. docs/THREAT_MODEL.mdre-anchored atsrc/engine/midi.zig: the XMIDI loop
stack, its depth check and the per-buffer jump budget had moved, so
make lintfailedcheck-threat-modelon every run. The three mitigations
the model cites were always in the file; only the line numbers were stale.docs/THREAT_MODEL.mdre-anchored acrosssrc/api/,src/engine/,
src/root.zigandsrc/fuzz_native_test.zig, which had drifted the same
way:make lintfailedcheck-threat-modelon 90 references.
scripts/check_threat_model_refs.py --updatere-aimed each one at the line
its anchor is on now.AIL_set_3D_sample_loop_blockandAIL_set_stream_loop_blockapply the SDK
loop-block argument rules the 2DAIL_set_sample_loop_blockalready did:
both offsets-2is a no-op, a single-2keeps that side's current
offset, and a reversed pair is swapped. The 3D and stream entry points
passed the pair straight through, so-2cleared the loop block instead of
leaving it alone, and a game that gave the block the SDK way round (a common
habit, since the 2D call accepts it) got a sample that played through once.
The normalization is nowopenmiles.resolveLoopBlock, shared by all three.AIL_stop_sequenceon a sequence that never reached a sound reports
SEQ_STOPPED.Sequence.statusreturnedSEQ_DONEfor every sequence that
was not initialized, which is checked before the stop flag, so a game that
starts a sequence, falls back when the driver cannot play it, and then stops
it could never observeSEQ_STOPPED.AIL_set_sequence_ms_positionapplies the tempo events it passes over even
when the driver has no soundfont loaded. The seek consumes every event before
the target whether or not it applies it, so the tempo in force at the seek
point was being skipped, and beat and measure were recalculated from the
file's initial tempo.AIL_load_sample_bufferleaves the ring's head cursor on the slot it names
when the submission is refused. The cursor advanced before the feed, so a
refusal left it one slot ahead, and the nextMSS_BUFFER_HEADcall skipped
the slotAIL_sample_buffer_readyhad just reported as free.AIL_enumerate_filter_attributesclears the name on the terminal call, as
its own comment says it does. It wrote the first attribute's name instead, so
a caller reading the name before the return value got"Cutoff"back from a
call that reported no attribute.