C# 클래스 geek.GameEngine.Sound.SoundEffectInfo

The info about a known sound effect.
파일 보기 프로젝트 열기: impworks/xna.geek.engine 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
AssetName string
Effect Microsoft.Xna.Framework.Audio.SoundEffect
IsLooped bool

공개 메소드들

메소드 설명
Play ( bool allowOverlap = false, float volume = 1 ) : SoundEffectInstance

Play the sound.

SoundEffectInfo ( string asset, SoundEffect eff, bool isLooped = false ) : System.Collections.Generic
Stop ( ) : void

Stop all the instances of the sound.

비공개 메소드들

메소드 설명
refreshInstances ( ) : bool

Remove all finished instances from the cache.

메소드 상세

Play() 공개 메소드

Play the sound.
public Play ( bool allowOverlap = false, float volume = 1 ) : SoundEffectInstance
allowOverlap bool Allow more than one instance of the sound played simultaneously.
volume float Volume of the sample (0..1)
리턴 Microsoft.Xna.Framework.Audio.SoundEffectInstance

SoundEffectInfo() 공개 메소드

public SoundEffectInfo ( string asset, SoundEffect eff, bool isLooped = false ) : System.Collections.Generic
asset string
eff Microsoft.Xna.Framework.Audio.SoundEffect
isLooped bool
리턴 System.Collections.Generic

Stop() 공개 메소드

Stop all the instances of the sound.
public Stop ( ) : void
리턴 void

프로퍼티 상세

AssetName 공개적으로 프로퍼티

Asset name of the effect.
public string AssetName
리턴 string

Effect 공개적으로 프로퍼티

The effect.
public SoundEffect,Microsoft.Xna.Framework.Audio Effect
리턴 Microsoft.Xna.Framework.Audio.SoundEffect

IsLooped 공개적으로 프로퍼티

Gets or sets looping flag.
public bool IsLooped
리턴 bool