Click or drag to resize
SoundPlayer Class
Play a sound effect.
Inheritance Hierarchy
SystemObject
  GeonBit.Core.SoundSoundPlayer

Namespace:  GeonBit.Core.Sound
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class SoundPlayer

The SoundPlayer type exposes the following members.

Constructors
  NameDescription
Public methodSoundPlayer(SoundEffect)
Create the sound player.
Public methodSoundPlayer(String)
Create the sound player from asset path.
Top
Properties
  NameDescription
Public propertyDuration
Get sound duration.
Public propertyEmitter
Get the audio emitter (when using 3d sound).
Public propertyIs3D
Get if the sound currently have 3d effect applied on it.
Public propertyIsLooped
Make the sound play in loop.
Public propertyIsPaused
Is the sound effect currently paused?
Public propertyIsPlaying
Is the sound effect currently playing?
Public propertyIsStopped
Is the sound effect currently stopped?
Public propertyListener
Get the audio listener (when using 3d sound).
Public propertyPan
Pan effect.
Public propertyPitch
Pitch effect.
Public propertySoundEffect
Get the sound effect itself.
Public propertyVolume
Sound effect volume.
Top
Methods
  NameDescription
Public methodApply3D
Enable 3d sound effect with emitter and listener.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodPause
Pause the sound.
Public methodPlay
Play sound effect.
Public methodStop
Stop playing the sound.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also