C# Class Sharpex2D.Audio.DirectSound.DirectSoundProvider

Inheritance: ISoundProvider
Afficher le fichier Open project: ThuCommix/Sharpex2D

Méthodes publiques

Méthode Description
Dispose ( ) : void

Disposes the SoundProvider.

Pause ( ) : void

Pause a sound.

Play ( Sound soundFile ) : void

Plays the sound.

Resume ( ) : void

Resumes a sound.

Seek ( long position ) : void

Seeks a sound to a specified position.

Stop ( ) : void

Stops the sound.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Disposes the SoundProvider.

Private Methods

Méthode Description
DirectSoundOutStopped ( object sender, EventArgs e ) : void

Triggerd if the DSoundOut stopped.

DirectSoundProvider ( ISoundInitializer soundInitializer ) : System

Initializes a new CSCoreSoundProvider class.

Play ( IWaveSource source ) : void

Plays the sound.

Method Details

Dispose() public méthode

Disposes the SoundProvider.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

Disposes the SoundProvider.
protected Dispose ( bool disposing ) : void
disposing bool The State.
Résultat void

Pause() public méthode

Pause a sound.
public Pause ( ) : void
Résultat void

Play() public méthode

Plays the sound.
public Play ( Sound soundFile ) : void
soundFile Sound The Soundfile.
Résultat void

Resume() public méthode

Resumes a sound.
public Resume ( ) : void
Résultat void

Seek() public méthode

Seeks a sound to a specified position.
public Seek ( long position ) : void
position long The Position.
Résultat void

Stop() public méthode

Stops the sound.
public Stop ( ) : void
Résultat void