| SoundPlayer Class |
Namespace: GeonBit.Core.Sound
public class SoundPlayer
The SoundPlayer type exposes the following members.
| Name | Description | |
|---|---|---|
| SoundPlayer(SoundEffect) |
Create the sound player.
| |
| SoundPlayer(String) |
Create the sound player from asset path.
|
| Name | Description | |
|---|---|---|
| Duration |
Get sound duration.
| |
| Emitter |
Get the audio emitter (when using 3d sound).
| |
| Is3D |
Get if the sound currently have 3d effect applied on it.
| |
| IsLooped |
Make the sound play in loop.
| |
| IsPaused |
Is the sound effect currently paused?
| |
| IsPlaying |
Is the sound effect currently playing?
| |
| IsStopped |
Is the sound effect currently stopped?
| |
| Listener |
Get the audio listener (when using 3d sound).
| |
| Pan |
Pan effect.
| |
| Pitch |
Pitch effect.
| |
| SoundEffect |
Get the sound effect itself.
| |
| Volume |
Sound effect volume.
|
| Name | Description | |
|---|---|---|
| Apply3D |
Enable 3d sound effect with emitter and listener.
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Pause |
Pause the sound.
| |
| Play |
Play sound effect.
| |
| Stop |
Stop playing the sound.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |