Audio - 2026-11-25, Claude
Owner request (Janari 25.11): find the purchased sound packs, plan where to use them, buy a combat SFX pack ("Otsime juurde jah lahinguhelide paki"), then "ostsin paki ära, tõmba alla ja kasuta". Plan doc (Claude Doc): https://claude.ai/artifact/2n8CXd9QmUkvwBLEyUaFKh
Sources (originals untouched)
- Ultimate Game Music Collection (JLF, Asset Store 37351):
Desktop/UnityProjects/WieldHavenUnity/Assets/Ultimate Game Music Collection. - RPG & Fantasy Sounds Bundle (PlaceHolder Inc, Asset Store 379678, bought 25.11, Standard Asset Store EULA, "no generative AI"): downloaded to
%APPDATA%/Unity/Asset Store-5.x/PlaceHolder Inc/AudioSound FX/(1000 WAV). Not imported into the Unity project; files were read straight from the package. - HeroEditor InventorySystem / bow sounds, FantasyMonsters OpenLootbox.ogg.
- Not used: Discovery Cinematic Music Pack (3 tracks, still only in cache), HeroEditor firearms. Legacy SkeletonQuest WAVs: owner 26.11 "jätame vanad helid välja" ->
Assets/Audio/Legacy/.gdignore(Godot skips them; files kept, copy in D:/WieldHavenBackups/archive/audio_20261125/removed_from_game/).
What is in the game
Assets/Audio/{Music,Stingers,Ambience,SFX}- 22 music loops, 6 stingers, 7 ambience loops, 322 SFX variants (78 sound ids). All OGG Vorbis; SFX mono, trimmed, peak-normalised. 38.5 MB total (Music 29 MB).Scripts/Audio/AudioCatalog.gd- generated id -> res:// path table.Scripts/Audio/AudioDirector.gd- autoloadAudioDirector: buses Music/Ambience/SFX/UI (created at runtime), music crossfade 1.6 s, music per zone (world map place positions, radius 2300; interiors by area_id), combat music while an enemy hasaggro_target == player(held 7 s), boss music for Elite/Warlord/Lord/King, stingers duck music, 20-voice positional SFX pool (max 3 of one sound, 45 ms gap), 4 UI voices, every BaseButton click, footsteps every 46 px moved (grass/dirt by zone, pitch per zone). Silent whenDisplayServeris headless (verification runs, servers).Scripts/Audio/AudioHooks.gd- staticAudioHooks.*used by gameplay code; forwards to the autoload or does nothing without it (--script tools).- Hooks (one line each): Player.gd (melee swing, bow, staff, skills, hurt, level up, mining), SkeletonEnemy.gd (aggro voice, attack voice/swing, bow, hit/block/critical, death voice + body fall), GameOver.gd (death/respawn), QuestService (start/complete), ShopTransactionService (trade, coins, not enough gold), ForgeUpgradeService (forge), RewardService (loot drop), WorldPickup (pickup), Inventory.gd (potion, equip), NativeAreaHost (door).
- Main menu Settings: new "Sound mix" row (Music / Ambience / Effects) saved in
user://Settings.cfg[audio]. Pause (Game Menu) Settings has the same Music/Ambience/Effects row since 26.11 (row spacing 16->9 to fit; probe audio_20261125/pause_probe.gd, run pause2 5/5, screenshot reviewed). - Mob voices by family: Goblin = Humanoid Small, Orc = Humanoid Large, Demon = Creature 5/7, Imp = Creature 4, Undead/skeleton = Creature 3/8 (chosen by spectral analysis, not by ear - owner should listen and swap in
convert_audio.pymapping if any feels wrong).
Rebuild
Converter + mapping: D:/WieldHavenBackups/archive/audio_20261125/tools/ (index.py <extracted pkg> idx.json, convert_audio.py idx.json <out>; needs pip install soundfile). Pre-change copies of all edited scripts: D:/WieldHavenBackups/archive/audio_20261125/before/.
Evidence
- Isolated rendered probe
D:/WieldHavenBackups/proof_recordings/audio_20261125/audio_probe.gd(run via perf_20261122/run.ps1, runs audio1/audio2): 11/11 pass - world music+ambience, footsteps, combat music on aggro, enemy swing/voice, hit, death voice + body fall, Frostpass music after combat, new-location stinger, UI click. Driver WASAPI. run_game_checks.ps1quick: CHECK 37/37, ARMOR 9/9 pass. stress_40 budget fails (67.8 FPS < 80) but it already failed before audio today (69.1-74.3 in runs 195653/200201/201452), so not caused by this; audio cost not isolated.- Menu Settings screenshot reviewed at 1080p: panel fits with Apply/Back.
Not checked / open
- Nobody has listened yet: loudness balance, voice choices, music picks.
- Snow/stone/wood footsteps reuse dirt (pitched); CC0 sets could be added.
- Web export: +38.5 MB to the pck (Web presets already fail to start, see PERFORMANCE). Option later: lower music bitrate or stream music separately.
- Online: client-side only; OnlinePlayerVisual/NetworkManager not touched.
- NPC greetings, enemy footsteps not done.