C# Класс BalloonsPop.SoundPlayer.SoundsPlayer

Playres sounds based on string parameters.
Наследование: ISoundsPlayer
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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