C# Class Sharpex2D.Audio.XAudio2.XAudio2SoundProvider

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

Méthodes publiques

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

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

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

Pause() public méthode

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

Play() public méthode

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

Resume() public méthode

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

Seek() public méthode

Seeks the sound.
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