XML Sound Gauges

FSSC, Airport 2.*, CfgEdit, etc. Get to grips with designing Scenery & Panels here!

XML Sound Gauges

Postby adambot3000 » Fri Apr 16, 2010 2:32 pm

Hello everybody, I have a couple questions regarding XML Gauges that play sounds.

I am just wondering if there is a tutorial out there on making XML Gauges that play sounds in certain situations?
Like what I want to do, is at least make an XML Sound Gauge that only plays a sound when the throttles are all the way up and the plane is not moving.

I am a freeware sound developer and I make soundsets for planes in Flight Sim, you can check out my A320 Soundset on the video page on this site or on Youtube, I post more on youtube though.

Anyway, I would gladly appreciate if someone could give me a tutorial on making XML Sound Gauges or show me a website or whatever. Please and Much Thanks in Advance!

Adam
adambot3000
Ground hog
Ground hog
 
Posts: 12
Joined: Thu Feb 18, 2010 2:09 pm
Location: CYYT

Re: XML Sound Gauges

Postby WebbPA » Fri Apr 16, 2010 4:26 pm

Google Flight Simulator SDK (Software Development Kit)

Microsoft Flight Simulator X SDK SP1A

How to locate the Flight Simulator 9 SDK
WebbPA
Ground hog
Ground hog
 
Posts: 0
Joined: Sat Sep 25, 2010 6:01 pm

Re: XML Sound Gauges

Postby Tech Diver » Thu Apr 22, 2010 1:26 pm

Adam, I think I found what you are looking for. A fellow named Doug Dawson has a gauge in the Simviation library called "XML Sound gauges v2.1". It is available here: http://www.simviation.com/fsgauges_8.htm.

I downloaded the file but haven't tried it out yet. I don't know your level of XML programming but you probably want to write something like:


Code: Select all
<Gauge Name="whatever you want to call it" Version="1.0">
      <Comment>
      Gauge to automatically play a sound when at full throttle and not moving.
      </Comment>

      <Update Frequency="6"/>


      <Element>
            <Select>
                  <Value>
                  (A:ENG1 N1 RPM,percent) 10 >
                  (A:GENERAL ENG1 THROTTLE LEVER POSITION,percent) 99 > &&
                  (A:GROUND VELOCITY,knots) 0 == &&
                  if{
                        <Comment> Invoke the sound stuff here</Comment>
                        1 (>L:AC_Sound01,number)

                  }
                  </Value>
            </Select>
      </Element>
</Gauge>


Be aware that I have NOT tested the code that I have written above. Note that you not only have to check for full throttle and no motion, but also that the engine is running (thus my statement checking that "ENG1 N1 RPM" is greater than 10%).

Good luck and let us know how it works. I may have a need for this as well sometime in the future.

Peter
Last edited by Tech Diver on Thu Apr 22, 2010 1:31 pm, edited 1 time in total.
Tech Diver
2nd Lieutenant
2nd Lieutenant
 
Posts: 196
Joined: Fri Oct 30, 2009 8:47 am
Location: Concord, Massachusetts

Re: XML Sound Gauges

Postby adambot3000 » Thu Apr 22, 2010 3:50 pm

Thanks alot Tech Diver!

I have already downloaded Doug Dawson's DSD_Sound.gau.
I have never really done much programming with XML gauges at all in general but thanks alot for that code! I might try it out sometime soon once I learn how to set it all up.

Also, is there any way I can make XML sounds ONLY play in the interior and make another XML sound play ONLY outside the plane?

See, what I am trying to recreate in FS2004 is, you know how when you are on either a King Air or a Beech 1900, and the Pratt & Whitney Canada PT6A engines power up for take off you hear that loud roaring and then the plane moves and the roaring dies down to a humming sound? That is what I am trying to do.

But thanks so much for your support!

Adam
adambot3000
Ground hog
Ground hog
 
Posts: 12
Joined: Thu Feb 18, 2010 2:09 pm
Location: CYYT

Re: XML Sound Gauges

Postby Tech Diver » Thu Apr 22, 2010 5:19 pm

I believe that what you want to acheive can be done entirely in the sound.cfg file. You can reserve a specific sound to be active during a specific engine RPM range (this is exactly how reverse thrust works).

Your description of the intial roar followed by the humm happens because it takes time for the engine RPM to increase and reach the "humming" state, and not really because the aircraft is in motion. I bought the TSS CFM-56 Soundpack for the Airbus and that is exactly what it does. Do you use any editing tool such as FS Sound Studio? With that tool you can graphically set the RPM of the "humm zone".

As for your interior vs exterior, I'm sorry to say that I don't know the answer. However, you probably already know that it can easily be set in the sound.cfg file.

I will look into this topic some more and let you know if I discover anything helpful.

Peter
Tech Diver
2nd Lieutenant
2nd Lieutenant
 
Posts: 196
Joined: Fri Oct 30, 2009 8:47 am
Location: Concord, Massachusetts


Return to Scenery & Panel Design

Who is online

Users browsing this forum: No registered users and 268 guests