C# Class Prism.API.Audio.Sfx

Datei anzeigen Open project: TerrariaPrismTeam/Prism

Public Methods

Method Description
Play ( SfxEntry entry, Point tilePos ) : SoundEffectInstance
Play ( SfxEntry entry, Point tilePos, int variant, PlaySoundEvent onPlay ) : SoundEffectInstance
Play ( SfxEntry entry, Point tilePos, int variant, float volMod = Single.NaN, float pitch = Single.NaN, float panMod = Single.NaN ) : SoundEffectInstance
Play ( SfxEntry entry, Vector2 position ) : SoundEffectInstance
Play ( SfxEntry entry, Vector2 position, int variant, PlaySoundEvent onPlay ) : SoundEffectInstance
Play ( SfxEntry entry, Vector2 position, int variant, float volMod = Single.NaN, float pitch = Single.NaN, float panMod = Single.NaN ) : SoundEffectInstance

Private Methods

Method Description
ApplyParams ( SoundEffectInstance inst, Tuple t ) : void
CalcParams ( SfxEntry e, Vector2 pos, int v, PlaySoundEvent onPlay ) : Tuple
CleanupLingeringInstances ( ) : void
Play ( int type, Point tilePos, int style = -1 ) : SoundEffectInstance
Play ( int type, Vector2 position, int style = -1 ) : SoundEffectInstance
Play ( int type, int x = -1, int y = -1, int style = -1 ) : SoundEffectInstance

Method Details

Play() public static method

public static Play ( SfxEntry entry, Point tilePos ) : SoundEffectInstance
entry SfxEntry
tilePos Point
return Microsoft.Xna.Framework.Audio.SoundEffectInstance

Play() public static method

public static Play ( SfxEntry entry, Point tilePos, int variant, PlaySoundEvent onPlay ) : SoundEffectInstance
entry SfxEntry
tilePos Point
variant int
onPlay PlaySoundEvent
return Microsoft.Xna.Framework.Audio.SoundEffectInstance

Play() public static method

public static Play ( SfxEntry entry, Point tilePos, int variant, float volMod = Single.NaN, float pitch = Single.NaN, float panMod = Single.NaN ) : SoundEffectInstance
entry SfxEntry
tilePos Point
variant int
volMod float
pitch float
panMod float
return Microsoft.Xna.Framework.Audio.SoundEffectInstance

Play() public static method

public static Play ( SfxEntry entry, Vector2 position ) : SoundEffectInstance
entry SfxEntry
position Vector2
return Microsoft.Xna.Framework.Audio.SoundEffectInstance

Play() public static method

public static Play ( SfxEntry entry, Vector2 position, int variant, PlaySoundEvent onPlay ) : SoundEffectInstance
entry SfxEntry
position Vector2
variant int
onPlay PlaySoundEvent
return Microsoft.Xna.Framework.Audio.SoundEffectInstance

Play() public static method

public static Play ( SfxEntry entry, Vector2 position, int variant, float volMod = Single.NaN, float pitch = Single.NaN, float panMod = Single.NaN ) : SoundEffectInstance
entry SfxEntry
position Vector2
variant int
volMod float
pitch float
panMod float
return Microsoft.Xna.Framework.Audio.SoundEffectInstance