C# 클래스 BalloonsPop.SoundPlayer.SoundsPlayer

Playres sounds based on string parameters.
상속: ISoundsPlayer
파일 보기 프로젝트 열기: Baloons-Pop-4/Main 1 사용 예제들

공개 메소드들

메소드 설명
CountSounds ( ) : int

Returns the amount of registered sounds

PlaySound ( string soundName ) : void

Plays the sound matching the given string. If no matching sound, throw an exception.

RegisterSound ( string soundName, System.Media.SoundPlayer player ) : void

Caches a sound in the current instance.

SoundsPlayer ( ISoundsLoader loader ) : System

Initializes a new instance of the SoundsPlayer class.

메소드 상세

CountSounds() 공개 메소드

Returns the amount of registered sounds
public CountSounds ( ) : int
리턴 int

PlaySound() 공개 메소드

Plays the sound matching the given string. If no matching sound, throw an exception.
public PlaySound ( string soundName ) : void
soundName string
리턴 void

RegisterSound() 공개 메소드

Caches a sound in the current instance.
public RegisterSound ( string soundName, System.Media.SoundPlayer player ) : void
soundName string
player System.Media.SoundPlayer
리턴 void

SoundsPlayer() 공개 메소드

Initializes a new instance of the SoundsPlayer class.
public SoundsPlayer ( ISoundsLoader loader ) : System
loader ISoundsLoader
리턴 System