C# 클래스 PantheonPrototype.AudioManager

파일 보기 프로젝트 열기: Bacon41/PantheonPrototype 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
backgroundMusicCategory Microsoft.Xna.Framework.Audio.AudioCategory
engine Microsoft.Xna.Framework.Audio.AudioEngine
gunshotCategory Microsoft.Xna.Framework.Audio.AudioCategory
sfxCue Microsoft.Xna.Framework.Audio.Cue
soundEffectCategory Microsoft.Xna.Framework.Audio.AudioCategory
sounds Microsoft.Xna.Framework.Audio.SoundBank
waves Microsoft.Xna.Framework.Audio.WaveBank

공개 메소드들

메소드 설명
AudioManager ( ) : System
playBackgroundMusic ( string currentLevel ) : void

This will basically stop any background music that is playing, then will select the new sound file based on the name of the current level

playFirstBackgroundMusic ( Cue backgroundCue ) : void

This method will play the first set of music for the game

playSoundEffect ( string cueName ) : void

This will play sound effects.. YAY!!! (based on the string cueName)

메소드 상세

AudioManager() 공개 메소드

public AudioManager ( ) : System
리턴 System

playBackgroundMusic() 공개 메소드

This will basically stop any background music that is playing, then will select the new sound file based on the name of the current level
public playBackgroundMusic ( string currentLevel ) : void
currentLevel string passed from Level (levelNum)
리턴 void

playFirstBackgroundMusic() 공개 메소드

This method will play the first set of music for the game
public playFirstBackgroundMusic ( Cue backgroundCue ) : void
backgroundCue Microsoft.Xna.Framework.Audio.Cue created cue that is attributed to specific sound
리턴 void

playSoundEffect() 공개 메소드

This will play sound effects.. YAY!!! (based on the string cueName)
public playSoundEffect ( string cueName ) : void
cueName string the name of the cue that the XACT file attributes to the sound file
리턴 void

프로퍼티 상세

backgroundMusicCategory 공개적으로 프로퍼티

public AudioCategory,Microsoft.Xna.Framework.Audio backgroundMusicCategory
리턴 Microsoft.Xna.Framework.Audio.AudioCategory

engine 공개적으로 프로퍼티

public AudioEngine,Microsoft.Xna.Framework.Audio engine
리턴 Microsoft.Xna.Framework.Audio.AudioEngine

gunshotCategory 공개적으로 프로퍼티

public AudioCategory,Microsoft.Xna.Framework.Audio gunshotCategory
리턴 Microsoft.Xna.Framework.Audio.AudioCategory

sfxCue 공개적으로 프로퍼티

public Cue,Microsoft.Xna.Framework.Audio sfxCue
리턴 Microsoft.Xna.Framework.Audio.Cue

soundEffectCategory 공개적으로 프로퍼티

public AudioCategory,Microsoft.Xna.Framework.Audio soundEffectCategory
리턴 Microsoft.Xna.Framework.Audio.AudioCategory

sounds 공개적으로 프로퍼티

public SoundBank,Microsoft.Xna.Framework.Audio sounds
리턴 Microsoft.Xna.Framework.Audio.SoundBank

waves 공개적으로 프로퍼티

public WaveBank,Microsoft.Xna.Framework.Audio waves
리턴 Microsoft.Xna.Framework.Audio.WaveBank