1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

[UT'99] why sound is so low

Discussion in 'Programming' started by Raven, Apr 7, 2005.

  1. Raven

    Raven Member

    Jan 17, 2004
    Likes Received:
    I write code for lightning. The problem is, that sound is played too low, and I don't know what I need to do, to make it work properly. Here is code:

    class TCOLightningSound extends TCOLightning;
    #exec OBJ LOAD FILE=..\Sounds\AmbOutside.uax PACKAGE=AmbOutside
    var() sound LightningSound;
    var() byte LightningVolume;
    var() bool LightningbNoOverride;
    var() byte LightningRadius;
    function PlayThunder()
      PlaySound(LightningSound, SLOT_None, float(LightningVolume)*128, LightningbNoOverride, float(LightningRadius)*25);
  2. Asgard

    Asgard New Member

    Oct 6, 2000
    Likes Received:
    Well it might be that youre trying to set the sound way too high. So high that its defaulting to 1. Even the 255 setting is too high that's an ambient sound setting not really a playsound setting. I believe the playsound works by multipliers,so youre trying to multiply the volume by 255 by 128. The highest Ive ever seen a playsound setting is 10. Most cases its seems it has no problem reducing volume but when trying to make it louder doesnt work too well.. try reducing the amount youre trying to multiply the volume..

    If thats not loud enuff export the sound and use a sound editing program to boost the imported sounds volume. if you keep the sound to a 8 bit or 16 bit sound it wont blow out your mod too much and will be barely noticable..

    for a read by Tim sweeny


Share This Page