SoundEffect Members

The following tables list the members exposed by the SoundEffect type.

Public Properties

Name Description
Public Property Static DistanceScale Gets or sets a value that adjusts the effect of distance calculations on the sound (emitter).
Public Property Static DopplerScale Gets or sets a value that adjusts the effect of doppler calculations on the sound (emitter).
Public Property Duration Gets or sets the duration of the SoundEffect.
Public Property IsDisposed Gets a value that indicates whether the object is disposed.
Public Property Static MasterVolume Gets or sets the master volume that affects all SoundEffectInstance sounds.
Public Property Name Gets or sets the asset name of the SoundEffect.
Public Property Static SpeedOfSound Returns the speed of sound: 343.5 meters per second.

Public Methods

Name Description
Public Method Dispose Releases the resources used by the SoundEffect.
Public Method Equals (Inherited from Object.)
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method Play Overloaded. Creates a new SoundEffectInstance and plays it.
Public Method Play3D Overloaded. Returns a playing SoundEffectInstance.
Public Method ReferenceEquals (Inherited from Object.)
Public Method ToString (Inherited from Object.)

Protected Methods

Name Description
Protected Method Finalize Releases unmanaged resources and performs other cleanup operations before the SoundEffect is reclaimed by garbage collection.
Protected Method MemberwiseClone (Inherited from Object.)

See Also

Reference

SoundEffect Class
Microsoft.Xna.Framework.Audio Namespace