Author Topic: how to make a sound's travel distance further?  (Read 607 times)

title

i know of audioclose and audioclosest but are there any others? a sound i made doesn't seem to travel half as far as orchhith and it's bugging me
« Last Edit: May 03, 2016, 07:06:03 PM by kongo »

I'm not sure what all the default ones are, but if you can't find an AudioDescription that does what you want, you could make your own. Here's what I used for a police siren:

Code: [Select]
datablock AudioDescription(AudioCVSiren1Loop : AudioDefaultLooping3d)
{
   maxDistance = 200;
   referenceDistance = 25;
   volume = 0.5;
};

datablock AudioDescription(AudioCVSiren1Single : AudioCVSiren1Loop)
{
isLooping = 0;
};

okay so i'm basically a vegetable when it comes to comprehending torque
would it go like this
Code: [Select]
datablock AudioDescription(AudioClose3d : i don't know what to put here)
{
   maxDistance = 200;
   referenceDistance = 25;
   volume = 0.5;
};

datablock AudioProfile(bellgongsound)
{
   filename    = "./bellgong.wav";
   description = AudioClose3d;
   preload = false;
};

is minDistance a value under audiodescription?

Code: [Select]
datablock AudioDescription(Yourdesc3D: AudioClose3d)
{
volume   =0;
   isLooping= false;
   is3D     = true;
   ReferenceDistance= 0.0;
   MaxDistance= 0.0;
};

Just copy paste this.

For future reference, "Yourdesc3D" will be the name of your audiodescription

Volume is self explanitory

IsLooping Determines whether the audio repeats or loops itself

is3D determines if its a 3 Dimensional sound, if your audio is intended to be a 2 Dimensional sound, meaning there is no fading out over a distance, then put false, and ignore "Reference Distance"

Reference Distance will determine at what distance the audio will start fading out.

Max Distance determines the max range of the sound, or how big the sound radius is.



In order to implement this into an audio Datablock, simply do this
Code: [Select]
datablock AudioProfile(YourSound)
{
   filename    = "YourSound";
   description = YourDesc3d;
   preload = false;
};

Where it says "Description" Simply replace "AudioDefault, Close, Closest" what ever it is, With the name of description you made above.

Hope this helps

is minDistance a value under audiodescription?
pretty sure it isn't

Code: [Select]
datablock AudioDescription(Yourdesc3D: AudioClose3d)
{
volume   =0;
   isLooping= false;
   is3D     = true;
   ReferenceDistance= 0.0;
   MaxDistance= 0.0;
};

Just copy paste this.

For future reference, "Yourdesc3D" will be the name of your audiodescription

Volume is self explanitory

IsLooping Determines whether the audio repeats or loops itself

is3D determines if its a 3 Dimensional sound, if your audio is intended to be a 2 Dimensional sound, meaning there is no fading out over a distance, then put false, and ignore "Reference Distance"

Reference Distance will determine at what distance the audio will start fading out.

Max Distance determines the max range of the sound, or how big the sound radius is.



In order to implement this into an audio Datablock, simply do this
Code: [Select]
datablock AudioProfile(YourSound)
{
   filename    = "YourSound";
   description = YourDesc3d;
   preload = false;
};

Where it says "Description" Simply replace "AudioDefault, Close, Closest" what ever it is, With the name of description you made above.

Hope this helps
yes, this is exactly what i wanted
thank you very much

By the way Volume is a float value (from 0.0-1.0)