View Full Version : xml gauges and sound
pcmeneg
April 9th, 2008, 07:34
Hi friends,
is it possible to drive a .wav sound with a xml gauge programming? I'd like to genarate a "trim" noise. I know it's possible with .gau C programming, but I won't use it.
thanks
Moparmike
April 9th, 2008, 16:59
I don't believe that it is possible to setup up an XML gauge to play a sound but I could be mistaken. I don't do very much XML programming so I really haven't kept on top of what's all possible with XML gauges.
You might also try searching the panel design forums at Flightsim.com and Avsim.com to see if anyone else there has covered the subject.
http://forums.flightsim.com/vbfs/forumdisplay.php?f=24
http://forums.avsim.net/dcboard.php?az=show_topics&forum=122
pcmeneg
April 11th, 2008, 04:55
OK thanks a lot.
Stefano
sparks
April 12th, 2008, 22:37
It is possible with Doug Dawson's xml sound gauge, a gau-type gauge that interfaces xml to direct sound. You can download it from the avsim.com library (search for dsd_xml_sound3.zip) It's not simple to set up and use, but there are some 'how-to' posts in the avsim 'panels' forum about set up and use.
java2srv
April 13th, 2008, 12:12
Ah Ha! :jump:
The light goes on! I was just looking at the Cal Classics DC-6 panel this last week because it has sound in the magneto switches. I had both ends -- the XML gauge and the sound files -- but was missing a piece in the middle.
Stefano,
go to www.calclassic.com (http://www.calclassic.com) and go to the "Panels" page (2nd link down on the right hand side on the main page)
download the:
"FS2004/FSX DC-6/DC-6B KMCC Panel" (dc6pnlkmcc.zip) --click on the panel picture, 1st one on the page
next:
from inside the zip file extract "Setup.exe" and run the setup -- install the DC-6 panel into an empty temp folder
you will find a new set of files and folders under Aircraft, under Gauges, and under Sound
in the Gauges folder you'll find sub-folder Z_DC6MTG
in that folder you will find "MAGNETOES.xml (yes, spelling like "toes")
at the very bottom of that file you see the XML code to invoke sound in the gauge using "dsd_xml_sound2.gau"
you are looking for this:
<Click Repeat="Yes">03 (>L:km_xml_sound_id, number)...
Also:
If you look at "dc6b_sound.ini" you will see how the "km_xml_sound_id" variable is passed into the sound gauge file in order to play the sound.
Above is a description of how to locate an example, and not how to actually use the sound gauge and XML. You'll have to look at the files and documentation in dsd_xml_sound3.zip in order to see how they actually work together.
Hope this is helpful. Your original question and Sparks' answer were the last two pieces of the puzzle for me and I hope the DC-6 panel example will help make using sound in your XML gauges clearer.
The new version at AVSIM contains "dsd_xml_sound3.gau"
Thank You Sparks and Thank You Stafano!
:wavey:
pcmeneg
April 21st, 2008, 06:49
It is possible with Doug Dawson's xml sound gauge, a gau-type gauge that interfaces xml to direct sound. You can download it from the avsim.com library (search for dsd_xml_sound3.zip) It's not simple to set up and use, but there are some 'how-to' posts in the avsim 'panels' forum about set up and use.
Very nice info
THANK YOU!
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.