Author Topic: Feature request: SEXPs adjusting volume  (Read 2508 times)

0 Members and 1 Guest are viewing this topic.

Feature request: SEXPs adjusting volume
Would it be possible to have SEXPs for adjusting the volume of sounds in-game? It would be useful for especially cutscenes, where the camera is close to a ship, and the sound makes the music/speech inaudible (see ASW opening cutscene). Or one could even fully silence the game, that could be a nice effect as well.

Imagine it as being several SEXPs, say one for in-game sounds (warps, explosions,etc), one for the music that plays, one for message sounds. The SEXP would have a floating-point argument that expresses the new volume as a fraction of the default; so 1 is default volume, 0.5 is half the default volume, 2 is double. 0 would be complete silence.
It may also be good to build in a limit to that factor, just in case.

Could it be done?

Clarity edit: "default" here meaning "what the game passes to the computer".
« Last Edit: January 13, 2010, 03:43:15 am by FreeSpaceFreak »

 

Offline Fury

  • The Curmudgeon
  • 213
Re: Feature request: SEXPs adjusting volume
No because you cannot know how each individual PC's audio volume have been set up. Some may be lower than average, some higher than average. In the worst case scenario a PC's audio volume is much higher than average while FS2 audio volume is very low, overriding this causes audio volume in mission to be extremely loud. Worse yet, user may wear headphones. To make matters more complicated, Vista and Win7 support per-application volume control.

 
Re: Feature request: SEXPs adjusting volume
But can't you adjust the volume of the sounds that the game passes to the computer, independently of those individual volume settings?

 

Offline Fury

  • The Curmudgeon
  • 213
Re: Feature request: SEXPs adjusting volume
You totally missed the point. You cannot anticipate how an user has his PC/FS2 volume set up. Increasing or lowering volume via sexps is not going to please people since they have the volume set up to their liking.

If you have volume issues, fix your audio assets.

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Feature request: SEXPs adjusting volume
About the only volume control that should be in the hands of the modder is that in the tables.  Now a feature request for a sexp to alter those setting may not be a bad thing but I agree with Fury with the changing users volume settings is not good.  Last thing I need is to be jamming tunes and decide to play your mod and have it blow out my speakers. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 
Re: Feature request: SEXPs adjusting volume
Really. I don't mean altering the user's settings. I mean just turning down the volume temporarily for certain effects.
For example, if a cutscene camera is close to a ship warping in, it's a pretty sight, but the warp sound from close by is louder than anything else, e.g. voice acting. So if one could just set the game sounds volume to be lower during that cutscene, the voice would still be audible.
Or when a large ship explodes next to the player, the mission designer could make for a temporarily deafening effect, muting all the sounds and having them gradually come back.

As for blowing out your speakers, that's why the factor should probably be limited.

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Feature request: SEXPs adjusting volume
Yeah, I can see the potential here.

Fury, the point is not to set the absolute volume of an effect, it's the relative volume that's being manipulated. Meaning that the game would still respect the users' max settings. It just might be quieter than that. Other games do these effects all the time.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Aardwolf

  • 211
  • Posts: 16,384
Re: Feature request: SEXPs adjusting volume
Like fading out sound effects for a cutscene?

Or when a large ship explodes next to the player, the mission designer could make for a temporarily deafening effect, muting all the sounds and having them gradually come back.

Heheh... like how grenades/explosives in some modern FPS's make your ears ring for several seconds after?

  

Offline Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker- you've probably heard me
    • My old squad sub-domain
Re: Feature request: SEXPs adjusting volume
Out of curiousity, is there a 'fade-soundtrack' or equivalent?
 
It'd be nice for some missions I have where the screen fades but the music is constant. . . . I wants uniformity.
Campaigns I've added my distinctiveness to-
- Blue Planet: Battle Captains
-Battle of Neptune
-Between the Ashes 2
-Blue planet: Age of Aquarius
-FOTG?
-Inferno R1
-Ribos: The aftermath / -Retreat from Deneb
-Sol: A History
-TBP EACW teaser
-Earth Brakiri war
-TBP Fortune Hunters (I think?)
-TBP Relic
-Trancsend (Possibly?)
-Uncharted Territory
-Vassagos Dirge
-War Machine
(Others lost to the mists of time and no discernible audit trail)

Your friendly Orestes tactical controller.

Secret bomb God.
That one time I got permabanned and got to read who was being bitxhy about me :p....
GO GO DEKKER RANGERSSSS!!!!!!!!!!!!!!!!!
President of the Scooby Doo Model Appreciation Society
The only good Zod is a dead Zod
NEWGROUNDS COMEDY GOLD, UPDATED DAILY
http://badges.steamprofile.com/profile/default/steam/76561198011784807.png

 
Re: Feature request: SEXPs adjusting volume
Fury, the point is not to set the absolute volume of an effect, it's the relative volume that's being manipulated. Meaning that the game would still respect the users' max settings. It just might be quieter than that. Other games do these effects all the time.
Yes, exactly.

*snip*
Indeed, that would be some of the possibilities.

Out of curiousity, is there a 'fade-soundtrack' or equivalent?
 
It'd be nice for some missions I have where the screen fades but the music is constant. . . . I wants uniformity.
I don't think there's anything right now; the closest you'll get is when using stop-sound-from-file, it gives you the option of fading out the track.
But it might very well be integrated in the SEXP proposed here, as an optional second argument. Like so:

Code: [Select]
set-music-volume
-0.0
-3000

set-sound-from-file-volume
-0.5
The first one would fade the game music to silence in 3 seconds (3000 milliseconds), much like the fade-out SEXP. The second one would instantaneously adjust the volume of a sound, played via the play-sound-from-file SEXP, to 0.5 times the original volume.

 
Re: Feature request: SEXPs adjusting volume
... bad idea, or hard to implement?