C# Class Nez.Audio.AudioSource

plays a collection of SoundEffects randomly and optionally with random pitch
Afficher le fichier Open project: prime31/Nez

Méthodes publiques

Méthode Description
addSoundEffect ( SoundEffect effect ) : AudioSource

adds a SoundEffect to the AudioSource

createInstance ( ) : SoundEffectInstance
play ( ) : bool
play ( float volume, float pitch, float pan ) : void
setPanRange ( float min, float max ) : AudioSource

if a pan range is set every time play is called a random pan will be used

setPitchRange ( float min, float max ) : AudioSource

if a pitch range is set every time play is called a random pitch will be used

Method Details

addSoundEffect() public méthode

adds a SoundEffect to the AudioSource
public addSoundEffect ( SoundEffect effect ) : AudioSource
effect Microsoft.Xna.Framework.Audio.SoundEffect Effect.
Résultat AudioSource

createInstance() public méthode

public createInstance ( ) : SoundEffectInstance
Résultat Microsoft.Xna.Framework.Audio.SoundEffectInstance

play() public méthode

public play ( ) : bool
Résultat bool

play() public méthode

public play ( float volume, float pitch, float pan ) : void
volume float
pitch float
pan float
Résultat void

setPanRange() public méthode

if a pan range is set every time play is called a random pan will be used
public setPanRange ( float min, float max ) : AudioSource
min float Minimum.
max float Max.
Résultat AudioSource

setPitchRange() public méthode

if a pitch range is set every time play is called a random pitch will be used
public setPitchRange ( float min, float max ) : AudioSource
min float Minimum.
max float Max.
Résultat AudioSource