C# Class Sharpex2D.Audio.OpenAL.OpenALAudioProvider

Inheritance: IAudioProvider
Mostra file Open project: ThuCommix/Sharpex2D

Public Methods

Method 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

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

Creates an AudioSource.
public CreateAudioSource ( string path ) : IAudioSource
path string The Path.
return IAudioSource

Dispose() public method

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

Initialize() public method

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

OpenALAudioProvider() public method

Initializes a new OpenALAudioProvider class.
public OpenALAudioProvider ( ) : System
return System

Pause() public method

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

Play() public method

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