Results 1 to 2 of 2

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

  1. #1
    Join Date
    Jan 1999
    Location
    San Antonio, TX
    Posts
    35

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

    Hi.

    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">
    <Element>
    <Select>
    <Value>(A:SPOILERS HANDLE POSITION,bool)</Value>
    <Case Value="0">
    <Image Name="spoil_off.bmp" ImageSizes="54,32"/>
    </Case>
    <Case Value="1">
    <Image Name="spoil_on.bmp" Bright="Yes" ImageSizes="54,32"/>
    </Case>
    </Select>
    </Element>
    </Gauge>


    Thanks,
    --WildBlue


  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
    Flightsim.com 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. Syntax matters....
    By pdecker in forum The Outer Marker
    Replies: 0
    Last Post: 03-08-2006, 06:55 PM
  2. ATC WAV Files - can I make FS play them?
    By VHOJT in forum FS2002
    Replies: 9
    Last Post: 01-25-2005, 07:35 PM
  3. How can I make FS9 ATC sound like......
    By jmagyar in forum FS2004
    Replies: 4
    Last Post: 02-13-2004, 07:03 AM
  4. Syntax help please
    By FS2002tipster in forum FS2002
    Replies: 3
    Last Post: 04-27-2003, 02:48 PM
  5. Blue Light does not make any sound.
    By Bat in forum FS2002
    Replies: 5
    Last Post: 04-06-2002, 04:51 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
  •