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

The class that handles sound playback.
파일 보기 프로젝트 열기: impworks/xna.geek.engine

공개 메소드들

메소드 설명
IsAnySoundPlaying ( ) : bool

Checks if any sound is playing.

IsMusicPlaying ( ) : bool

Checks if music is playing.

IsSoundPlaying ( string assetName ) : bool

Checks if sound is playing.

LoadMusic ( string assetName ) : void

Load the music.

LoadSound ( string assetName ) : void

Load a sound to the current

PlayMusic ( bool force = false ) : void

Play a background music.

PlaySound ( string assetName, bool allowOverlap = false, float volume = 1 ) : void

Play the sound.

StopAllSounds ( ) : void

Stop all sounds playing.

StopMusic ( ) : void

Stop music playing.

StopSound ( string assetName ) : void

Stop a sound playing.

비공개 메소드들

메소드 설명
SoundManager ( ) : System.Collections.Generic

메소드 상세

IsAnySoundPlaying() 공개 정적인 메소드

Checks if any sound is playing.
public static IsAnySoundPlaying ( ) : bool
리턴 bool

IsMusicPlaying() 공개 정적인 메소드

Checks if music is playing.
public static IsMusicPlaying ( ) : bool
리턴 bool

IsSoundPlaying() 공개 정적인 메소드

Checks if sound is playing.
public static IsSoundPlaying ( string assetName ) : bool
assetName string Sound asset name.
리턴 bool

LoadMusic() 공개 정적인 메소드

Load the music.
public static LoadMusic ( string assetName ) : void
assetName string Music asset name.
리턴 void

LoadSound() 공개 정적인 메소드

Load a sound to the current
public static LoadSound ( string assetName ) : void
assetName string Sound asset name.
리턴 void

PlayMusic() 공개 정적인 메소드

Play a background music.
public static PlayMusic ( bool force = false ) : void
force bool
리턴 void

PlaySound() 공개 정적인 메소드

Play the sound.
public static PlaySound ( string assetName, bool allowOverlap = false, float volume = 1 ) : void
assetName string Sound effect's asset name.
allowOverlap bool Whether many instances of the same sound can be played simultaneously or not.
volume float Volume of the sample (0..1).
리턴 void

StopAllSounds() 공개 정적인 메소드

Stop all sounds playing.
public static StopAllSounds ( ) : void
리턴 void

StopMusic() 공개 정적인 메소드

Stop music playing.
public static StopMusic ( ) : void
리턴 void

StopSound() 공개 정적인 메소드

Stop a sound playing.
public static StopSound ( string assetName ) : void
assetName string Sound asset name.
리턴 void