Sound Class
Animation Studio Reference

Sound Class

Sound provides basic functionallity to play sound media files. The class Sprite uses this class for playing sounds.

For a list of all members of this type, see Sound Members.

System.Object
   Sound

[Visual Basic]
Public Class Sound
[C#]
public class Sound

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

You must include the reference to the soundfile as an embedded resource. If you want do play soundfiles simultanously, you have to use DirectSound.

Example

Sound s = new Sound();
s.SoundFile = @"C:\sounds\sound1.wav";
s.Play = true;

Requirements

Namespace: AnimationStudio

Assembly: AnimationStudio (in AnimationStudio.dll)

See Also

Sound Members | AnimationStudio Namespace