C# Class LightController.MusicPlayer

Exibir arquivo Open project: ImagineLearning/NerfGallery

Public Properties

Property Type Description
FileName string
IsBeingPlayed bool
TrackName string

Public Methods

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

Private Methods

Method 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 method

public GetVolume ( ) : int
return int

MusicPlayer() public method

public MusicPlayer ( string fileName ) : System
fileName string
return System

Play() public method

public Play ( bool Looping ) : void
Looping bool
return void

SetVolume() public method

public SetVolume ( int newvolume ) : void
newvolume int
return void

StopPlaying() public method

public StopPlaying ( ) : void
return void

Property Details

FileName public_oe property

public string FileName
return string

IsBeingPlayed public_oe property

public bool IsBeingPlayed
return bool

TrackName public_oe property

public string TrackName
return string