Jump to content
Sign in to follow this  
Guest wee_davie_2612

Adding sound to XML gauges

Recommended Posts

Guest wee_davie_2612

Hey all,Can anyone tell me how to add a sound to an XML gauge that is activated when clicking the switch with the mouse?Here's the gauge code I've already made:- - (A:Circuit avionics on,bool) - (A:COM RECIEVE ALL,bool) - - - - 0 (>K:COM_RECEIVE_ALL_TOGGLE)What would I add to this to get a sound to play wen I click it? Also does the sound clip have to be packaged with the gauge in any specific way and if so how?CheersDavid

Share this post


Link to post
Share on other sites
Guest wee_davie_2612

Thanks Doug,I'll have a look and let you know.CheersDavid

Share this post


Link to post
Share on other sites
Guest wee_davie_2612

Hey Doug,I'm not really looking for the sound to be played through a seperate compiled gauge, rather I'm looking to play it directly via the xml gauge.I should have mentioned that I'm a complete newbie at this. My experience is all of about 8 switches, and most of them are simple clickspots to bring up windows. Infact the gauge I posted above (and the other two that I made with it) are the most complicated of any gauge I've made.Most of your readme file went over my head!I thought it was possible to add an extra command in the section of the gauge that would play a sound directly?I could be wrong :)CheersDavid

Share this post


Link to post
Share on other sites

Hi,The only way to add sounds to an xml gauge is via a special "xml-sound.gau" (a C++ gauge).The simpliest way is as follows:Look in the library for (the late) Bill Morad's xmlsound.zip, upload and read the instructions.When you have a plane with 1 to 4 JET!! engines (don't know about other engine types) you can use the Afterburner-events to hear 1 to 4 sounds by adding in the click-event (your gauge): (>K:COM_RECEIVE_ALL_TOGGLE) (>K:TOGGLE_AFTERBURNER1) or (>K:TOGGLE_AFTERBURNER2) 3 and 4.When this is accomplished, you should start using Doug's very nice gauge and add tenth's of sounds to your cockpit.Jan"Procul Negotiis"

Share this post


Link to post
Share on other sites
Guest wee_davie_2612

Hey Jan,I've done this and I now get sound from the gauge, however I get lots of 'clicks' each time I press the switch (i.e. the sound loops 4-5 times).How do I go about changing this?CheersDavid

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...