Sound Class Reference

Sound effects data. More...

List of all members.

Public Member Functions

 Sound (string filename)
 Sound constructor (from the filename)
 Sound (byte[] fileImage)
 Sound constructor (from the file image)
void Dispose ()
 Frees unmanaged resources of Sound.
SoundPlayer CreatePlayer ()
 Creates a SoundPlayer object to play back this sound effect.

Detailed Description

Sound effects data.

wav files can be used as sound effects data.


Constructor & Destructor Documentation

Sound ( string  filename)

Sound constructor (from the filename)

Parameters:
filenameSound effect filename
Sound ( byte[]  fileImage)

Sound constructor (from the file image)

Parameters:
fileImageSound effect file image

Member Function Documentation

SoundPlayer CreatePlayer ( )

Creates a SoundPlayer object to play back this sound effect.

Returns:
SoundPlayer object linked to the sound effect data