Method | Description | |
---|---|---|
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.
|
public RegisterSound ( string soundName, System.Media.SoundPlayer player ) : void | ||
soundName | string | |
player | System.Media.SoundPlayer | |
return | void |
public SoundsPlayer ( ISoundsLoader loader ) : System | ||
loader | ISoundsLoader | |
return | System |