C# 클래스 Nez.Audio.AudioSource

plays a collection of SoundEffects randomly and optionally with random pitch
파일 보기 프로젝트 열기: prime31/Nez

공개 메소드들

메소드 설명
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

메소드 상세

addSoundEffect() 공개 메소드

adds a SoundEffect to the AudioSource
public addSoundEffect ( SoundEffect effect ) : AudioSource
effect Microsoft.Xna.Framework.Audio.SoundEffect Effect.
리턴 AudioSource

createInstance() 공개 메소드

public createInstance ( ) : SoundEffectInstance
리턴 Microsoft.Xna.Framework.Audio.SoundEffectInstance

play() 공개 메소드

public play ( ) : bool
리턴 bool

play() 공개 메소드

public play ( float volume, float pitch, float pan ) : void
volume float
pitch float
pan float
리턴 void

setPanRange() 공개 메소드

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.
리턴 AudioSource

setPitchRange() 공개 메소드

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.
리턴 AudioSource