The amazing Mr. Rob Barendregt wrote one for the F-14 from Dino for FS9 that works beautifully. The trick isn't just to make a plane have the sound of an AB. You need to make the right changes to the aircraft.cfg and .air files to make the AB actually function. Give the added thrust, making sure the throttle engages the AB's correctly, the right number of stages, and the Thrust Specific Fuel Consumption for the AB's. They really suck down the fuel, too.
The sound is nice, don't get me wrong, but the rest is as important, if not more so.
Do a search for Rob's gauges for FS9. I am sure you'll find the right gauges you want to make the AB's do what you want.
@pat, Thanks for the qualification "amazing" ...LoL
Such a gauge is quite easy to make, and a lot of variants exists allready.
But it all depends on the addon aircraft you want to use it for; more specifically: if this aircraft model allready uses the built-in FS2004 "Afterburner" feature.
Because if so, making a gauge that activates an AB sound (using Doug Dawson's XMLsound module) is very easy and only a few lines of code.
If the addon aircraft uses an external (visual) effect file (.fx) to visualise the AB , you don;t even need a gauge, because you can trigger the sound via the .fx file.
But I agree with Pat: the sound is only a small part of the Afterburner "experiance".
Activating the AB should also result in additional thrust/speed (defined in a table in the .air file).
In FS2004 (as far as I know), it's just ON of OFF, while in FSX and up you have multiple AB stages.
And there is the question how (in that addon model) the AB is triggered: e.g. using the FS Afterburner event, either manually given by the user or automatically generated by a gauge depending on a criterium like N1/N2 or Throttle position.
How to best add an Afterburner sound to an existing aircraft model, depends on how the AB is allready modelled (visually and/or FDE-wise) in that (addon) model.
Because "Afterburner Active" is quite ambiguous, and depends how it's implemented.
What can I say? You're xml coding amazes me every time I read through a gauge you wrote
The gauge I was thinking of originally, though was This one, over on Avsim. It has all that you need to know about AB's, how to activate them, trigger sound and light effects (the AB flames out the back), how to modify the aircraft.cfg and .air files to get the correct fuel usage and power addition, all that fun stuff.
Maybe you can read through his sound effect trigger and see what Rob did to get the right sounds at the right times.
I'm not saying to copy his coding word-for-word, but you may get some ideas on how to make your own gauge.
Sorry, I don;t have FS2004 and all of my old addons for it anymore; so I'm afraid I can't help debugging why you cannot get it working.
As to playing a sound from an .fx effect file:
The trick was (as far as I can remember) to add a line
Sound= "a number"
to the .fx file.
That "number" corresponded (via a fixed number-filename relation) to a soundfile in the /Sound folder; so this soundfile was played once, while the .fx file was active.
But I forgot the exact details.
Maybe someone with a better memory then me can answer that in detail.
I've done it in a few cases; this example is from a parking announcement outside my classic LAX ("the white zone is for loading and unloading, no parking". Here is the general idea from a previous thread:
First you have a effects controller file. This controls where you must be located to hear the effect. This effect controller file must be placed into the scenery, at the locations you want to hear the sound. I placed one at each terminal at LAX. Second you have the effect file that actually plays the sound. This file is called by the controller file when specified.
ADE can place effects into the scenery, if you have used that program to create your Cape Canaveral airport (or you can load your AFCAD bgl file into ADE and use ADE from this point forward). If not, you can use XML and bglcomp to place them manually. This is not too hard.
The controller file (Cntl_parking_announce.fx), looks like this:
X Offset=0.00, 0.00
Y Offset=0.00, 0.00
Z Offset=0.00, 0.00
So make a copy of my controller (in your FS2004/Effects folder) and paste it back in. Then rename it to something like Cntl_Canaveral_announce.fx.
The only line you must change is the last one, to point to your sound effect file, not mine. Just change the file name. You may also want to change the Radius=, distance=, and Delay= lines, if you want the trigger area to be larger/smaller, or the sound to start sooner/later (and the length of silence between announcement repeats).
So now we come to the sound effect file itself (fx_parking_announce.fx). The only important part of this file is at the top:
The Emitter section below does nothing - it just makes it a valid effect file.
So make a copy of this file and rename the copy something like fx_Canaveral_announce.fx.
The important lines here are the Sound= and the Sound Param= lines. The Sound= line determines how the sound will be played (5 = play once; the controller repeats it). and the Sound Param= line determines which WAV file will be played. These WAV file names are all *hard coded* in FS and cannot be changed. There are a limited number of WAV file names and they cannot be used more than once in FS - you can use only one each in your entire FS9 installation.
The sound parameters and associate file names are:
Sound filenames associated with effects file entries
Sound type "5"
Where three filenames are listed, one will play at
random at each initiation of the effect...
The Sound=5 sounds are for scenery, while I use the Sound=6 sounds for my AI sounds . So you'll need to use Sound=5. I've already used Sound Param=31, so you will need to use another one. BTW, you can have up to 3 different announcements - they will play randomly. I instead have 3 identical WAV files so the same announcement plays all the time. Look in your main FS2004 Sound folder and you will see amb_gexp2a.wav, amb_gexp2b.wav, and amb_gexp2c.wav. These are my parking announcements. Your wav files will go here too.
Other scenery creators have also used some sounds in their sceneries but I don't use non-CalClassic scenery, so that's not a problem for me. You can look in your Sound folder for any other WAV files starting with amb_ - avoid using those. They often used the lower Sound Param numbers, so that's why I used a large one (31). I would do the same and use a number like 34, if available on your machine.
Okay so i want to add an afterburner sound to the freeware virtavia f-22. Would i use the above to do this or different because its an aircraft not scenery? Sorry new to trying to edit more technical things on fs9
That's a whole different subject, but: I seem to recall someone doing such a gauge on something like a BF109, or something. I'm sorry this isn't more help. I'll look around and see what I can find, though.
For the AB sound, I strongly suggest reading through the Readme fie included with the RCBAC-10.zip I linked before. It has all you need to add the sound without any sound file editing at all. I even read through the .xml file that turns the sound and light effects on and off, and even I can understand it. To me, this says that any .xml tyro, which I am sure one of, can figure it out. Easy as cake....errr...pie! Easy as pie!
Sorry, Space 2010 reference. Always cracks me up...
I'll leave the rest to Rob's Readme and .xml files to explain.