SoundEffect Members

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

Public MethodSoundEffectOverloaded. Initializes a new instance of SoundEffect, which provides the ability to load audio data for sound effects.

Public Property StaticDistanceScaleGets or sets a value that adjusts the effect of distance calculations on the sound (emitter).
Public Property StaticDopplerScale Gets or sets a value that adjusts the effect of doppler calculations on the sound (emitter).
Public PropertyDurationGets the duration of the SoundEffect.
Public PropertyIsDisposedGets a value that indicates whether the object is disposed.
Public Property StaticMasterVolumeGets or sets the master volume that affects all SoundEffectInstance sounds.
Public PropertyNameGets or sets the asset name of the SoundEffect.
Public Property StaticSpeedOfSoundReturns the speed of sound: 343.5 meters per second.

Public MethodCreateInstance Creates a new SoundEffectInstance for this SoundEffect.
Public MethodDisposeReleases the resources used by the SoundEffect.
Public MethodEquals(Inherited from Object.)
Public Method StaticFromStreamCreates a SoundEffect object based on the specified data stream.
Public MethodGetHashCode(Inherited from Object.)
Public Method StaticGetSampleDurationReturns the sample duration based on the specified sample size and sample rate.
Public Method StaticGetSampleSizeInBytesReturns the size of the audio sample based on duration, sample rate, and audio channels.
Public MethodGetType(Inherited from Object.)
Public MethodPlayOverloaded. Plays a sound.
Public MethodToString(Inherited from Object.)

Protected MethodFinalize(Inherited from Object.)
Protected MethodMemberwiseClone(Inherited from Object.)

Community Additions