Author Topic: Add some kind of limiter/clipper to the sound-output  (Read 1847 times)

0 Members and 1 Guest are viewing this topic.

Offline Dr.Penicz

  • Major
  • *
  • Posts: 53
Add some kind of limiter/clipper to the sound-output
« on: September 10, 2014, 11:02:03 am »
For all those headphone-addicts, it maybe is a good idea to add something like a limiter, or just some hard clipping (resulting in some distortions, if the sounds are too loud) to the sound-output, in order to protect the ears..
From time to time you have simultaneously exploding granades, or eg. that bug when a sniper tries to punch, but one hears him shooting several shots at once..
Generally talking about all the situations, when a soundfile is played multiple times rapidly.
Any headphone-users around??

Offline Mighty

  • Camper
  • ***
  • Posts: 276
Re: Add some kind of limiter/clipper to the sound-output
« Reply #1 on: September 11, 2014, 05:24:47 am »
headphone user or not, I've had a heart attack multiple times when suddenly the respawn sound pops five times louder than usual
xFire: macmil        e-mail: macekmil@gmail.com
My scripts: Accuracy Script       Flashbang       Punishments GUID
            CatchMe Gamemod       AntiFake
            CW System             AntiFakeGUID

Offline Bistoufly

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 782
Re: Add some kind of limiter/clipper to the sound-output
« Reply #2 on: September 11, 2014, 07:53:45 am »
headphone user or not, I've had a heart attack multiple times when suddenly the respawn sound pops five times louder than usual
Same here.

Offline Dr.Penicz

  • Major
  • *
  • Posts: 53
Re: Add some kind of limiter/clipper to the sound-output
« Reply #3 on: September 11, 2014, 09:03:01 am »
Yeah, that's also some common issue, I forgot about.
Another one occurs if things get stuck in a poly, or something like that, and you get this "something hits the floor"-sound multiple times..

Offline Blacksheepboy

  • Veteran
  • *****
  • Posts: 1815
Re: Add some kind of limiter/clipper to the sound-output
« Reply #4 on: September 11, 2014, 04:21:43 pm »
headphone user or not, I've had a heart attack multiple times when suddenly the respawn sound pops five times louder than usual

Haha

Offline Shoozza

  • Retired Soldat Developer
  • Veteran
  • ******
  • Posts: 1632
  • Soldat's Babysitter
    • Website
Re: Add some kind of limiter/clipper to the sound-output
« Reply #5 on: September 12, 2014, 04:46:46 am »
I'm not sure how that clipping stuff would work, but the issue with the multiple too loud sounds could probably be fixed in 1.7
Rules
Tools: ARSSE - SARS - SRB - chatMod

Offline Dr.Penicz

  • Major
  • *
  • Posts: 53
Re: Add some kind of limiter/clipper to the sound-output
« Reply #6 on: September 12, 2014, 10:02:41 am »
Quote
but the issue with the multiple too loud sounds could probably be fixed in 1.7
And how?? Blending out old sounds if a new one starts??

Hard clipping is not more than "min(max(S,-1),1)". Where S is the sound-stream, assuming that the normal range would go from -1 to 1. But be warned that this would produce some hardcore-distortions.
Soft clipping could be done with some function like "atan()"..
I guess you only play back some .wavs. If you have a place for some soundeffects, the clipping would go there...
I've done some DSP, so maybe I could help. I'd just need to know how you process sounds.

Offline Blacksheepboy

  • Veteran
  • *****
  • Posts: 1815
Re: Add some kind of limiter/clipper to the sound-output
« Reply #7 on: September 13, 2014, 01:05:34 am »
Well from what I take it, the sounds stack or something.. which is probably fixable? Like my brain thinks of it as a sound queue that just adds up instead of just having sounds naturally occur at once. Doh, why am I tying to talk about the technical stuff. At least this is how I remember it to be.. unless it's just team spawn or something.