C# Class SoundBoard.Audio.Player

Show file Open project: jormenjanssen/Soundboard Class Usage Examples

Public Methods

Method Description
Close ( ) : void

Stops currently playing audio file

IsPlaying ( ) : bool
Open ( string sFileName ) : void

Opens audio file to play

Pause ( ) : void

Pauses currently playing audio file

Play ( bool loop ) : void

Plays selected audio file

Player ( ) : System

Not much to conctruct here

Status ( ) : string

Returns the current status player: playing,paused,stopped etc.

Private Methods

Method Description
mciSendString ( string strCommand, StringBuilder strReturn, int iReturnLength, int bla ) : long

Method Details

Close() public method

Stops currently playing audio file
public Close ( ) : void
return void

IsPlaying() public method

public IsPlaying ( ) : bool
return bool

Open() public method

Opens audio file to play
public Open ( string sFileName ) : void
sFileName string This is the audio file's path and filename
return void

Pause() public method

Pauses currently playing audio file
public Pause ( ) : void
return void

Play() public method

Plays selected audio file
public Play ( bool loop ) : void
loop bool If True,audio file will repeat
return void

Player() public method

Not much to conctruct here
public Player ( ) : System
return System

Status() public method

Returns the current status player: playing,paused,stopped etc.
public Status ( ) : string
return string