Wargus / wargus

Importer and scripts for Warcraft II: Tides of Darkness, the expansion Beyond the Dark Portal, and Aleonas Tales
GNU General Public License v2.0
356 stars 55 forks source link

[Minor Feature Request] Reduce audio volume for off screen sounds #425

Open katastic opened 2 years ago

katastic commented 2 years ago

I know that's not default Warcraft behavior but it's pretty crazy sounding to have full volume war even when you look away. especially non-stop hitting building sounds, or "AI boat touching land".

I could probably look through the code and add this as an optional feature. Though you guys can likely do it way faster than I can, but I understand if you're too busy.

timfel commented 2 years ago

It's not full volume, it attenuates the volume towards silence in a range of your resolution * 3. So if you are on a big map and you go to the other end at e.g. 640x480 resolution, you won't hear the sounds. But if you are just one full screen over, you still hear it.

katastic commented 1 year ago

Hmm I've definitely not noticed any fading. Perhaps the effect doesn't work right in 1080p? I'll confirm more tomorrow.

On Tue, Mar 29, 2022, 1:19 AM Tim Felgentreff @.***> wrote:

It's not full volume, it attenuates the volume towards silence in a range of your resolution * 3. So if you are on a big map and you go to the other end at e.g. 640x480 resolution, you won't hear the sounds. But if you are just one full screen over, you still hear it.

— Reply to this email directly, view it on GitHub https://github.com/Wargus/wargus/issues/425#issuecomment-1081448082, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXLJ6JM6RF6LMXHFM44ST3VCKOGXANCNFSM5R5FHIOA . You are receiving this because you authored the thread.Message ID: @.***>

timfel commented 1 year ago

I guess that in 1080p, you see so much of the map that probably are never 3 screens away - on 128x128 maps, you would only hear a lower volume is the sound is in the top left corner and you are at the very bottom of the map. Horizontally, you only have 2 screens, so it wouldn't lower at all. I just confirmed that locally also.