C# Class Sharpex2D.Audio.XAudio2.XAudio2SoundProvider

Inheritance: ISoundProvider
ファイルを表示 Open project: ThuCommix/Sharpex2D

Public Methods

Method Description
Dispose ( ) : void

Disposes the object.

Pause ( ) : void

Pause the sound.

Play ( Sound soundFile ) : void

Plays a sound.

Resume ( ) : void

Resumes the sound.

Seek ( long position ) : void

Seeks the sound.

Stop ( ) : void

Stops the sound.

Private Methods

Method Description
Play ( IWaveSource waveSource ) : void

Plays the wave source.

XAudio2SoundProvider ( CSCore xaudio2, ISoundInitializer soundInitializer ) : System

Initializes a new XAudio2SoundProvider class The XAudio2 Instance. The ISoundInitializer.

Method Details

Dispose() public method

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

Pause() public method

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

Play() public method

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

Resume() public method

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

Seek() public method

Seeks the sound.
public Seek ( long position ) : void
position long The Position.
return void

Stop() public method

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