December 5, 200322 yr 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
December 5, 200322 yr David,I will blow my own horn a little here. Your question is the exact reason why I created this file:http://library.avsim.net/search.php?Search...=Root&Go=SearchYou would add the ADF2 set event, as described in the readme, to your click event.Email me if you have any questions.Doug
December 5, 200322 yr 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
December 5, 200322 yr 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" Jan "Beatus ille qui procul negotiis..."
December 5, 200322 yr 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
Create an account or sign in to comment