News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > Coding

Reply
 
Thread Tools Display Modes
Old 7th Apr 2005, 03:57 PM   #1
Raven
Registered User
 
Raven's Avatar
 
Join Date: Jan. 17th, 2004
Posts: 147
Question [UT'99] why sound is so low

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:

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);
}

defaultproperties
{
     Texture=Texture'CHSystem.Icons.LightningS'
     LightningSound=Sound'AmbOutside.OneShot.thunder'
     LightningVolume=255
     LightningbNoOverride=false
     LightningRadius=255
}
Raven is offline   Reply With Quote
Old 10th Apr 2005, 03:29 AM   #2
Asgard
Registered User
 
Join Date: Oct. 6th, 2000
Posts: 265
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
http://unreal.epicgames.com/Audio.htm

cheers
Asgard is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:30 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer