TQS Home
Trivia Quiz Shell Version 2.8 Now Available!Bot Productions Home
TQS 2.0

Back to Reference

BGSOUND Element

Specifies the name of an audio file to be played in the background while the application is running.

Syntax
<BGSOUND
  LOOP="loop">bgsound</BGSOUND>
Attributes
LOOP
TQS 2.5 Specifies the number of times to loop through the sound file. If set to "-1", the file will loop infinitely.
Placement

The BGSOUND element must be a child of the TQS element.

Children

No children are supported within the BGSOUND element.

Remarks

The sound file must reside in the data root folder. This is, by default, the folder containing the .TQS file.

  • TQS 2.1 The data root folder can be set with the TQS element's DATAROOT attribute. To specify an absolute path, such as an Internet address, precede the path with NOROOT?.
  • TQS 2.6 To specify an embedded file, precede the path with EMBED?.

Depending on the version of Windows Media Player and the codecs installed, different audio formats are supported, such as MIDI, WAVE, and MP3.

Examples

<BGSOUND>bksong.mp3</BGSOUND>
<BGSOUND>NOROOT?http://www.example.com/song.mid</BGSOUND>
<BGSOUND LOOP="-1">shortsong.wav</BGSOUND>

©2020 Bot Productions. All rights reserved.Last Updated: January 5, 2006