C# Class Sharpex2D.Audio.OpenAL.OpenALAudioProvider

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

Méthodes publiques

Méthode Description
CreateAudioSource ( string path ) : IAudioSource

Creates an AudioSource.

Dispose ( ) : void

Disposes the object.

Initialize ( IAudioSource audioSource ) : void

Initializes the audio provider with the given audio source.

OpenALAudioProvider ( ) : System

Initializes a new OpenALAudioProvider class.

Pause ( ) : void

Pause a sound.

Play ( PlaybackMode playbackMode ) : 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.

Private Methods

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

Called if the AudioBuffer changed its playback.

DetectAudioFormat ( WaveFormat format ) : OpenALAudioFormat

Detects the OpenALAudioformat.

RaisePlaybackChanged ( ) : void

Raises the PlaybackChanged event.

Method Details

CreateAudioSource() public méthode

Creates an AudioSource.
public CreateAudioSource ( string path ) : IAudioSource
path string The Path.
Résultat IAudioSource

Dispose() public méthode

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

Initialize() public méthode

Initializes the audio provider with the given audio source.
public Initialize ( IAudioSource audioSource ) : void
audioSource IAudioSource The AudioSource.
Résultat void

OpenALAudioProvider() public méthode

Initializes a new OpenALAudioProvider class.
public OpenALAudioProvider ( ) : System
Résultat System

Pause() public méthode

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

Play() public méthode

Plays the sound.
public Play ( PlaybackMode playbackMode ) : void
playbackMode PlaybackMode The PlaybackMode.
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