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".