SoundEffect class. Allows loading and playing sound effects.
More...
|
Microsoft.Xna.Framework.Audio.SoundEffect | Sound [get] |
| Sound file. Use - See also
- SoundInstance, Microsoft.Xna.Framework.Audio.SoundEffect
to directly access the . More...
|
|
SoundEffectInstance | SoundInstance [get, set] |
| SoundInstance object. Allows playing the sound. More...
|
|
float | Volume [get, set] |
| Sound volume. Ranges from 0.0f to 1.0f. More...
|
|
float | Pitch [get, set] |
| Sound pitch. Ranges from -1.0f to 1.0f. More...
|
|
float | Pan [get, set] |
| Pan / speaker balance. More...
|
|
SoundState | SoundState [get, set] |
| Gets or sets the current state of the sound. para>Unlike SoundInstance.State, this property can be also set.para>Setting this property to any value will call the - See also
- Play, Stop, Pause
, and depinding on the value. More...
|
|
string | Name [get, set] |
| Object Name. Used as a string identifier. More...
|
|
object | Tag [get, set] |
| Tag object. More...
|
|
bool | Enabled [get, set] |
| Checks if object is enabled. More...
|
|
bool | Hidden [get, set] |
| Checks if object is being drawn. More...
|
|
List< ObjectBehiavour > | Behiavours [get, set] |
| Relation with other objects More...
|
|
Quaternion | RotationQuaternion [get] |
| Rotation in a Quaterion system. More...
|
|
string | Resource [get, set] |
| Resource file More...
|
|
SoundEffect class. Allows loading and playing sound effects.
◆ SoundEffect() [1/2]
_3DRadSpaceDll.SoundEffect.SoundEffect |
( |
string |
name, |
|
|
bool |
active, |
|
|
string |
resource, |
|
|
float |
volume = 1.0f |
|
) |
| |
Main constructor.
- Parameters
-
name | |
active | |
resource | |
volume | |
◆ SoundEffect() [2/2]
_3DRadSpaceDll.SoundEffect.SoundEffect |
( |
| ) |
|
◆ IsPaused()
bool _3DRadSpaceDll.SoundEffect.IsPaused |
( |
| ) |
|
Checks if the sound is paused.
- Returns
◆ IsPlaying()
bool _3DRadSpaceDll.SoundEffect.IsPlaying |
( |
| ) |
|
Checks if the sound is playing.
- Returns
◆ IsStopped()
bool _3DRadSpaceDll.SoundEffect.IsStopped |
( |
| ) |
|
Checks if the sound is stopped.
- Returns
◆ Load()
override void _3DRadSpaceDll.SoundEffect.Load |
( |
ContentManager |
content | ) |
|
|
virtual |
◆ Pause()
void _3DRadSpaceDll.SoundEffect.Pause |
( |
| ) |
|
◆ Play()
void _3DRadSpaceDll.SoundEffect.Play |
( |
| ) |
|
◆ Stop()
void _3DRadSpaceDll.SoundEffect.Stop |
( |
| ) |
|
◆ Trigger()
override void _3DRadSpaceDll.SoundEffect.Trigger |
( |
| ) |
|
|
virtual |
◆ Pan
float _3DRadSpaceDll.SoundEffect.Pan |
|
getset |
◆ Pitch
float _3DRadSpaceDll.SoundEffect.Pitch |
|
getset |
Sound pitch. Ranges from -1.0f to 1.0f.
◆ Sound
Microsoft.Xna.Framework.Audio.SoundEffect _3DRadSpaceDll.SoundEffect.Sound |
|
get |
Sound file. Use
- See also
- SoundInstance, Microsoft.Xna.Framework.Audio.SoundEffect
to directly access the .
◆ SoundInstance
SoundEffectInstance _3DRadSpaceDll.SoundEffect.SoundInstance |
|
getset |
SoundInstance object. Allows playing the sound.
◆ SoundState
SoundState _3DRadSpaceDll.SoundEffect.SoundState |
|
getset |
Gets or sets the current state of the sound. para>Unlike SoundInstance.State, this property can be also set.para>Setting this property to any value will call the
- See also
- Play, Stop, Pause
, and depinding on the value.
◆ Volume
float _3DRadSpaceDll.SoundEffect.Volume |
|
getset |
Sound volume. Ranges from 0.0f to 1.0f.