Object

Sound Class

Used to play sounds.

Methods
Clone
IsPlaying
Pan
Play
PlayLooping
Stop
Volume

# Notes

Sounds that have been added to the Project Editor can be accessed via their object name. Sounds can also be accessed by calling the OpenAsSound method of a FolderItem. There are no properties or events for sound objects.

Sound can play any number of sounds simultaneously, limited only by system resources.

# Examples

This example plays a sound called "Sledgehammer" which has been dragged into the Project Editor.

sledgehammer.play

This example loads a sound file called "Doh!" from the current directory (folder) into a sound object and plays it.

Dim f as FolderItem
Dim s as Sound
f = GetFolderItem("Doh!")
s = f.OpenAsSound
s.play

The following example plays the sound "Giggle", which has been added to the Project Editor, in an endless loop.

Giggle.playlooping

## This example stops "Giggle."

Giggle.stop

# See Also

NotePlayer control.