Sound Help

Introduction

Represents sounds as an element in IMML.

Child Elements

The sound element can 0 to Many of these elements in it.

  • Repeater
  • Stack
  • Grid
  • Model
  • Text
  • Effect
  • Primitive
  • Sound
  • Light
  • Camera
  • Widget
  • Trigger
  • Define

The sound element can have only 1 of these elements

  • Network

Example

1 <Sound Name="FireAlarm-1" Spatial="True" Loop="True" Position="-9.5,2,-14" Enabled="True" Source="sounds/alarma.wav"/>

Attributes

Enabled

Type imml:Boolean
Default True
Use Optional
Documentation When a sound is enabled, it will begin playback

Spatial

Type imml:Boolean
Default True
Use Optional
Documentation When true, the sound is positional according to the rotation and position specified

Volume

Type xs:float
Default 0.5
Use Optional
Documentation A value between 0 and 1 that describes the amount of volume to use, where 1 is the full amount of available volume

Stream

Type imml:Boolean
Default False
Use Optional
Documentation When true, the sound is streamed from the source on playback.

Pitch

Type xs:float
Default 1
Use Optional
Documentation The amount to multiply the frequency of the sound by

Loop

Type imml:Boolean
Default False
Use Optional
Documentation When true, the sound should loop on playback