Results 1 to 2 of 2

Thread: What syntax to make an XML guage to play a sound?

  1. #1
    Join Date
    Jan 1999
    San Antonio, TX

    Default What syntax to make an XML guage to play a sound?


    I want my "Spoiler On" gauge to not only light the lamp on the dash, but also to trigger a sound, such as the gear warning sound with flaps down on an approach.

    What syntax do I use within the text of the XML gauge and where do I place the instruction? Here's the text of the gauge so far:

    <Gauge Name="SpoilerToggle" Version="1.0">
    <Value>(A:SPOILERS HANDLE POSITION,bool)</Value>
    <Case Value="0">
    <Image Name="spoil_off.bmp" ImageSizes="54,32"/>
    <Case Value="1">
    <Image Name="spoil_on.bmp" Bright="Yes" ImageSizes="54,32"/>


  2. #2

    Default RE: What syntax to make an XML guage to play a sound?

    None, as XML scripts cannot play sounds at all. They also cannot read or write files to disk.

    There is a C gauge that Doug Dawson posted in the AVSIM file library called "dsd_sound..." that will allow you to send it a command to play a particular sound, but it does require a bit of set up to get working properly.
    Bill Leaming
    Gauge Programming - 3d Modeling Military Visualizations Panels & Gauges Forum Moderator
    Flightsim Rig: Intel Core i7-2600K - 8GB DDR3 1333 - EVGA GTX770 4GB - Win7 64bit Home Premium
    Development Rig1: Intel Core i7-3770k - 16GB DDR3 - Dual Radeon HD7770 SLI 1GB - Win7 64bit Professional
    Development Rig2: Intel Core i7-860 - 8GB DDR3 Corsair - GeForce GTS240 1GB - Win7 64bit Home Premium
    NOTE: Unless explicitly stated in the post, everything written by my hand is MY opinion. I do NOT speak for any company, real or imagined...

Similar Threads

  1. xml syntax to delay linear movement?
    By okbob in forum Panel & Gauge Design
    Replies: 2
    Last Post: 12-21-2010, 02:40 PM
  2. What's the XML syntax to tell a cockpit light to blink?
    By Jim Robinson in forum Panel & Gauge Design
    Replies: 2
    Last Post: 10-12-2007, 04:50 PM
  3. Syntax matters....
    By pdecker in forum The Outer Marker
    Replies: 0
    Last Post: 03-08-2006, 05:55 PM
  4. xml text syntax
    By iagman in forum FS2004
    Replies: 2
    Last Post: 08-03-2005, 01:13 PM
  5. Syntax help please
    By FS2002tipster in forum FS2002
    Replies: 3
    Last Post: 04-27-2003, 01:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts