contents.gifindex.gif

pueblo00000000.gif xch_volume

This is another <img> field which allows the volume of the sound device to be set. The volume is in the range 0 (off) to 100 (maximum volume). You can specify the volume of a specific device by using the XCH_DEVICE attribute to specify the device.

Note that the real volume range is from silent to whatever the user sets in their Sound control panel as maximum.

xch_volume may also be added to an xch_sound command to set the volume for a play or loop request.

Examples

The following statement will set the volume for all devices to silent:

<img xch_volume=0>

The following statement will set the volume for the midi device to maximum:

<img xch_volume=100 xch_device=midi>

The following statement will set the volume for all devices to half of the maximum setting:

<img xch_volume=50>

The following statement will play a wave file (click.wav) at the volume setting of 30:

<img xch_sound=play xch_volume=30 src="http://.../click.wav">

Also see

xch_device

xch_sound