SoundEffect Methods

The SoundEffect type exposes the following members.

  Name Description
Public method CreateInstance Creates a new SoundEffectInstance for this SoundEffect.
Public method Dispose Releases the resources used by the SoundEffect.
Public method Static member FromStream Creates a SoundEffect object based on the specified data stream.
Public method Static member GetSampleDuration Returns the sample duration based on the specified sample size and sample rate.
Public method Static member GetSampleSizeInBytes Returns the size of the audio sample based on duration, sample rate, and audio channels.
Public method Play() Plays a sound.
Public method Play(Single, Single, Single) Plays a sound based on specified volume, pitch, and panning.

Community Additions