C# Class SoundBoard.Audio.Player

Afficher le fichier Open project: jormenjanssen/Soundboard Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
mciSendString ( string strCommand, StringBuilder strReturn, int iReturnLength, int bla ) : long

Method Details

Close() public méthode

Stops currently playing audio file
public Close ( ) : void
Résultat void

IsPlaying() public méthode

public IsPlaying ( ) : bool
Résultat bool

Open() public méthode

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

Pause() public méthode

Pauses currently playing audio file
public Pause ( ) : void
Résultat void

Play() public méthode

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

Player() public méthode

Not much to conctruct here
public Player ( ) : System
Résultat System

Status() public méthode

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