C# Class LightController.MusicPlayer

Afficher le fichier Open project: ImagineLearning/NerfGallery

Méthodes publiques

Свойство Type Description
FileName string
IsBeingPlayed bool
TrackName string

Méthodes publiques

Méthode Description
GetVolume ( ) : int
MusicPlayer ( string fileName ) : System
Play ( bool Looping ) : void
SetVolume ( int newvolume ) : void
StopPlaying ( ) : void

Private Methods

Méthode Description
PlaySound ( string pszSound, IntPtr hMod, SoundFlags sf ) : bool
PlayWorker ( ) : void
mciSendString ( string command, StringBuilder buffer, int bufferSize, IntPtr hwndCallback ) : Int32

Method Details

GetVolume() public méthode

public GetVolume ( ) : int
Résultat int

MusicPlayer() public méthode

public MusicPlayer ( string fileName ) : System
fileName string
Résultat System

Play() public méthode

public Play ( bool Looping ) : void
Looping bool
Résultat void

SetVolume() public méthode

public SetVolume ( int newvolume ) : void
newvolume int
Résultat void

StopPlaying() public méthode

public StopPlaying ( ) : void
Résultat void

Property Details

FileName public_oe property

public string FileName
Résultat string

IsBeingPlayed public_oe property

public bool IsBeingPlayed
Résultat bool

TrackName public_oe property

public string TrackName
Résultat string