Skip to content

AudioUtil 0.9.31

Choose a tag to compare

@crajjjj crajjjj released this 29 Oct 18:36
· 11 commits to main since this release

Fixes a crash while the game loads, and keeps the fuz cache within its size limit.

Crash while the game loads

AudioUtil checks at game load that every file listed in a voice slot exists, and it opens .lip and .fuz files the same way while lines play. Every one of those opens released the engine's file stream twice. Most of the time nothing showed, but it wrote into memory the game had already freed: sometimes the game crashed while loading, and the damaged memory could also crash it later.

The fault was in CommonLibSSE-NG, the library AudioUtil is built on, and is fixed there. AudioUtil now uses that version (15.2.0).

The fuz cache stays within its limit

A .fuz voice line is decoded once into Sound\AudioUtilFuzCache\ as a wav. With prewarm_fuz on, AudioUtil decoded every .fuz of the configured slots at game start, and the fuz_cache_max_mb limit (256 MB by default) was only checked before that began. With a large .fuz voice pack this came to gigabytes in one session (under Mod Organizer, in Overwrite).

  • The prewarm now stops when the cache reaches fuz_cache_max_mb. The lines it does not reach are decoded when they first play, as they are without prewarm.
  • A cache that is over the limit at game start is trimmed, oldest files first, to a tenth below the limit. That leaves the prewarm room, and the lines of a pack you removed age out.
  • Two requests for the same line at the same moment no longer decode it twice.
  • autest warmfolder stops at the limit too.

If your Overwrite folder already holds a large Sound\AudioUtilFuzCache, delete that folder. It is safe: lines are decoded again as they play. AudioUtil's own placeholder files are in its mod folder, not there.

See fuz_cache_max_mb and prewarm_fuz in the config reference.

For mod authors

  • Safe to drop over 0.9.30. No API change: the Papyrus API is still 11 and the C++ interface 1.3.0 (10300).
  • A preset that turns prewarm_fuz on in its own base AudioUtil.toml needs no change: the limit now bounds it. Set fuz_cache_max_mb in that file for a different limit.

Download

  • AudioUtil-0.9.31.zip: the mod.
  • AudioUtil-API-0.9.31+.zip: the integration kit for mod authors, unchanged apart from the version.

LipSim is unchanged. Use AudioUtil-LipSim-0.9.27.zip from the 0.9.27 release.