Repository navigation
Conversation
… anvil, grindstone, quench and water pipe are no longer all at full volume - SfxModel caches each instance's C_SFX_DEF vol (0..127 as 0..1); a random variant (_A1, _A2) has its own - AudioService.GetRandomSoundClip(name, out volume): the picked sound's volume, 1 for a plain .wav name - AnimationEffectPlayer: a clip plays at it, a footstep one-shot gets it as volumeScale - an NPC's animation clips play on an own source next to NpcSound (_AnimationSfx, created on the first clip with NpcSound's settings): hits, weapon draws and steps play on NpcSound as one-shots and were turned down by the last clip's volume (and range) otherwise; a mob's source is its own already - VRMouth: eating, drinking and smoking at the VR mouth use it too (SMOKE_JOINT 20) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…mob animation sounds follow it, a playing loop at once Gothic.ini [SOUND] soundVolume (MENU_OPT_AUDIO) was written by the menu but applied to nothing. - AudioService.SoundVolume: the option 0..1, read on first use and again when the menu changes it (logged, LogCat.Audio) - AudioService.SetSfxVolume(source, volume): Gothic's volume of the sound times the slider; the source is remembered and set again on the option change (no polling), destroyed ones are dropped on the next world - VOB sounds and day/night sounds (VobInitializerDomain), NPC and mob animation clips (AnimationEffectPlayer) use it; footsteps, eating/drinking/smoking at the VR mouth and Snd_Play sounds get it when they play - voices and music are untouched (music has its own slider) Co-Authored-By: Claude Opus 5.5 <[email protected]>
… - it was hidden as unsupported Co-Authored-By: Claude Opus 5.5 <[email protected]>
…top end is a third louder for who wants more Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Sound effects are no longer too loud, and the sound effects slider in the sound options is back and works.
Gothic's own volume per sound. Animation sounds of NPCs and mobs play at the volume of each sound instance (
C_SFX_DEFvol/ 127), like the engine. Examples: anvilForge_Anvil50 = 39%, grindstoneForge_Sharpen20 = 16%,Pipe_bubbles40 = 31%,SMOKE_JOINT20. Before, every one played at 100%. Random variants (_A1...) use their ownvol.The slider is back. "Głośność efektów" (Gothic.ini
[SOUND] soundVolume) was hidden as unsupported (VmServicedisabled menu items) and applied to nothing. It is shown again and scales:Snd_Play2D sounds.A change applies at once, also to playing loops (event, no polling).
Room to go louder. The slider at 75% plays Gothic's own volume; the top end is a third louder (author's choice). The default when the ini has no value is 75%.
Technical:
SfxModel.GetRandomSound(out volume)andAudioService.GetRandomSoundClip(name, out volume).AudioService.SoundVolume(slider / 0.75) andAudioService.SetSfxVolume(source, volume)keep playing sources at "own volume × gain"._AnimationSfx, not on the sharedNpcSound. Setting the shared source's volume would have turned the NPC's hits, draws and spells down to the last clip's volume.Stacked on #578 (
AnimationEffectPlayer).Why
Playtest: Harad's smithy (anvil, grindstone, forge, with #578) was far too loud, and the sound effects slider was missing from the sound options.
How to test manually
Save/load
Nothing new. The slider is Gothic.ini. An existing Gothic.ini with
soundVolume=1is now a third louder than Gothic's own volume; set the slider to 75% for the original volume.Known gaps / follow-ups
PlayClipAtPoint, the VR body sounds, barrier thunder, rain and UI clicks.VRMouthSmoking's breath out (feat: smoke a water pipe with your own hands in VR - grab the mouthpiece, the hose follows, it bubbles at your mouth and you breathe out the smoke #580) still plays at full volume, until feat: smoke a water pipe with your own hands in VR - grab the mouthpiece, the hose follows, it bubbles at your mouth and you breathe out the smoke #580 is rebased on this.🤖 Generated with Claude Code