C# Class Sharpex2D.Audio.Wasapi.WasapiSoundProvider

Inheritance: ISoundProvider
Show file Open project: ThuCommix/Sharpex2D

Public Methods

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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Disposes the SoundProvider.

Private Methods

Method Description
DirectSoundOutStopped ( object sender, EventArgs e ) : void

Triggerd if the DSoundOut stopped.

Play ( IWaveSource source ) : void

Plays the sound.

WasapiSoundProvider ( ISoundInitializer soundInitializer ) : System

Initializes a new WasapiSoundProvider class.

Method Details

Dispose() public method

Disposes the SoundProvider.
public Dispose ( ) : void
return void

Dispose() protected method

Disposes the SoundProvider.
protected Dispose ( bool disposing ) : void
disposing bool The State.
return void

Pause() public method

Pause a sound.
public Pause ( ) : void
return void

Play() public method

Plays the sound.
public Play ( Sound soundFile ) : void
soundFile Sound The Soundfile.
return void

Resume() public method

Resumes a sound.
public Resume ( ) : void
return void

Seek() public method

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

Stop() public method

Stops the sound.
public Stop ( ) : void
return void