SoundEffect Members
The following tables list the members exposed by the SoundEffect type.
Public Constructors
Name | Description | |
---|---|---|
![]() |
SoundEffect | Overloaded. Initializes a new instance of SoundEffect, which provides the ability to load audio data for sound effects. |
Public Properties
Name | Description | |
---|---|---|
![]() ![]() |
DistanceScale | Gets or sets a value that adjusts the effect of distance calculations on the sound (emitter). |
![]() ![]() |
DopplerScale | Gets or sets a value that adjusts the effect of doppler calculations on the sound (emitter). |
![]() |
Duration | Gets the duration of the SoundEffect. |
![]() |
IsDisposed | Gets a value that indicates whether the object is disposed. |
![]() ![]() |
MasterVolume | Gets or sets the master volume that affects all SoundEffectInstance sounds. |
![]() |
Name | Gets or sets the asset name of the SoundEffect. |
![]() ![]() |
SpeedOfSound | Returns the speed of sound: 343.5 meters per second. |
Public Methods
Name | Description | |
---|---|---|
![]() |
CreateInstance | Creates a new SoundEffectInstance for this SoundEffect. |
![]() |
Dispose | Releases the resources used by the SoundEffect. |
![]() |
Equals | (Inherited from Object.) |
![]() ![]() |
FromStream | Creates a SoundEffect object based on the specified data stream. |
![]() |
GetHashCode | (Inherited from Object.) |
![]() ![]() |
GetSampleDuration | Returns the sample duration based on the specified sample size and sample rate. |
![]() ![]() |
GetSampleSizeInBytes | Returns the size of the audio sample based on duration, sample rate, and audio channels. |
![]() |
GetType | (Inherited from Object.) |
![]() |
Play | Overloaded. Plays a sound. |
![]() |
ToString | (Inherited from Object.) |
Protected Methods
Name | Description | |
---|---|---|
![]() |
Finalize | (Inherited from Object.) |
![]() |
MemberwiseClone | (Inherited from Object.) |