You can use the effectParams for controled effects. In the SDK for effects Toward the end it explains how to use this in effects. It works for sound too.
Basically you need a sound file, an effect file for that sound, If you have more than on sound, you need a controller, then you need an XML to place it. this is just like placing a object.
This is for one sound:
<?xml version="1.0" encoding="ISO-8859-1"?>
<FSData version="9.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="bglcomp.xsd">
<SceneryObject lat="55.118049" lon="-130.316691" alt="0" pitch="0" bank="0" heading="0" altitudeIsAgl="TRUE" imageComplexity="NORMAL">
<Effect effectName="fx_Gulls3" />
</SceneryObject>
To add another sound just place another object. Effect Params can be added to the line with the effect name.
Next is the FX file:
[Library Effect]
Lifetime=5
Version=2.00
Radius=24
Priority=1
[Sound]
FileName=gulls3.wav
MinAttenuationDistance=75.00
Looping=TRUE
[Properties]
Cockpit=1
VirtualCockpit=1
Spot=1
Tower=1
Map=1
[Emitter.0]
Lifetime=0.00, 0.00
Delay=0.50, 0.50
Bounce=0.00
Rate=5.00, 10.00
X Emitter Velocity=0.00, 0.00
Y Emitter Velocity=0.00, 0.00
Z Emitter Velocity=0.00, 0.00
Drag=0.00, 0.00
X Particle Velocity=-0.20, 0.20
Y Particle Velocity=0.00, 0.00
Z Particle Velocity=1.00, 2.00
X Rotation=0.00, 0.00
Y Rotation=0.00, 0.00
Z Rotation=0.00, 0.00
X Offset=0.00, 0.00
Y Offset=0.00, 0.00
Z Offset=0.00, 0.00
Pitch=0.00, 0.00
Bank=0.00, 0.00
Heading=0.00, 0.00
The emmitter area has to be there or it wont work. The radius= ## is in meters. this is explained in the effects SDK.
The MinAttenuationDistance= is also in meters and it's the maximum distance it will be heard. this wont work unless you have a controller.
The controller:
[Library Effect]
Lifetime=5
Version=1.00
Radius=200
Priority=0
[controller.0]
lifetime=1.00, 1.00
type=3
delay=10.00, 10.00
x offset=0.00, 0.00
y offset=0.00, 0.00
z offset=0.00, 0.00
random count=0, 0
effect.0=fx_Gulls3, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00
effect.1=fx_RRL_Wolf, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00
effect.2=fx_HDH_Wolf, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00
This is for 3 effects The type 3 is for the distance parameter. This is also explained in the SDK.
With the above altered for you sounds and effects you can place an effect anywhere you want.
If you want to see this in a scenery, go to avsim and search for Joe Watson or Raptors Roost Lodge.
Would you guys like me to try and write this subject up for the Wiki? I have done about 5 sceneries with sounds. Only one has been uploaded. another is up over at SOH but will be on avsim over the weekend.
Joe W